Pb: myLimit leaks if it was not provided at construction
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:
myLevel(0),
myBox(0)
{
- if ( !myLimit ) myLimit = new SMESH_TreeLimit();
+ //if ( !myLimit ) myLimit = new SMESH_TreeLimit();
}
//================================================================================
{
if ( myLevel==0 )
{
+ if ( !myLimit ) myLimit = new SMESH_TreeLimit();
myBox = buildRootBox();
if ( myLimit->myMinBoxSize > 0. && maxSize() <= myLimit->myMinBoxSize )
myIsLeaf = true;