Pb: myLimit leaks if it was not provided at construction
static int nbChildren() { return NB_CHILDREN; }
static int nbChildren() { return NB_CHILDREN; }
- // Compute the bigger dimension of my box
+ // Compute the biggest dimension of my box
virtual double maxSize() const = 0;
protected:
virtual double maxSize() const = 0;
protected:
- if ( !myLimit ) myLimit = new SMESH_TreeLimit();
+ //if ( !myLimit ) myLimit = new SMESH_TreeLimit();
}
//================================================================================
}
//================================================================================
+ if ( !myLimit ) myLimit = new SMESH_TreeLimit();
myBox = buildRootBox();
if ( myLimit->myMinBoxSize > 0. && maxSize() <= myLimit->myMinBoxSize )
myIsLeaf = true;
myBox = buildRootBox();
if ( myLimit->myMinBoxSize > 0. && maxSize() <= myLimit->myMinBoxSize )
myIsLeaf = true;