0025159: Collections and common types in BVH package are named in non-conformant...
[occt.git] / src / BVH / BVH_SweepPlaneBuilder.lxx
index 1708206..9454fba 100644 (file)
@@ -70,7 +70,7 @@ void BVH_SweepPlaneBuilder<T, N>::BuildNode (BVH_Set<T, N>*         theSet,
   {
     const T aNodeSize = BVH::VecComp<T, N>::Get (theBVH->MaxPoint (theNode), anAxis) -
                         BVH::VecComp<T, N>::Get (theBVH->MinPoint (theNode), anAxis);
-    if (aNodeSize <= THE_NODE_MIN_SIZE)
+    if (aNodeSize <= BVH::THE_NODE_MIN_SIZE)
     {
       continue;
     }
@@ -114,6 +114,9 @@ void BVH_SweepPlaneBuilder<T, N>::BuildNode (BVH_Set<T, N>*         theSet,
     }
   }
 
+  delete [] aLftSet;
+  delete [] aRghSet;
+
   if (aMinSplitAxis == -1)
   {
     return;