1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0031976: Foundation Classes, BVH_IndexedBoxSet - access members of base class via this pointer

This commit is contained in:
emv
2020-12-04 08:52:23 +03:00
committed by bugmaster
parent 75cf82505b
commit 1aa38057ef
2 changed files with 7 additions and 5 deletions

View File

@@ -26,6 +26,7 @@
#include <BVH_BoxSet.hxx>
#include <BVH_DistanceField.hxx>
#include <BVH_Geometry.hxx>
#include <BVH_IndexedBoxSet.hxx>
#include <BVH_LinearBuilder.hxx>
#include <BVH_PairDistance.hxx>
#include <BVH_Traverse.hxx>
@@ -207,8 +208,9 @@ static Standard_Integer QABVH_ShapeSelect (Draw_Interpretor& theDI,
new BVH_LinearBuilder <Standard_Real, 3>();
// Create the ShapeSet
opencascade::handle <BVH_BoxSet <Standard_Real, 3, TopoDS_Shape> > aShapeBoxSet =
new BVH_BoxSet <Standard_Real, 3, TopoDS_Shape> (aLBuilder);
opencascade::handle <BVH_BoxSet <Standard_Real, 3, TopoDS_Shape> > aShapeBoxSet = !useVoidSelector ?
new BVH_BoxSet <Standard_Real, 3, TopoDS_Shape> (aLBuilder) :
new BVH_IndexedBoxSet <Standard_Real, 3, TopoDS_Shape> (aLBuilder);
// Add elements into BVH