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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user