// Tree limit
const SMESH_TreeLimit* myLimit;
+ // Bounding box of a tree
+ box_type* myBox;
+
private:
// Build the children recursively
void buildChildren();
// Level of the Tree
int myLevel;
-
- box_type* myBox;
};
//===========================================================================
myChildren[i] = newChild();
// and we assign to him its box.
myChildren[i]->myFather = this;
+ if (myChildren[i]->myLimit)
+ delete myChildren[i]->myLimit;
myChildren[i]->myLimit = myLimit;
myChildren[i]->myLevel = myLevel + 1;
myChildren[i]->myBox = newChildBox( i );