//! Returns the bounding box with the given index.
virtual BVH_Box <NumType, Dimension> Box (const Standard_Integer theIndex) const Standard_OVERRIDE
{
- return myBoxes[myIndices[theIndex]];
+ return this->myBoxes[myIndices[theIndex]];
}
//! Swaps indices of two specified boxes.
}
//! Returns the Element with the index theIndex.
- virtual DataType Element (const Standard_Integer theIndex) const
+ virtual DataType Element (const Standard_Integer theIndex) const Standard_OVERRIDE
{
- return myElements[myIndices[theIndex]];
+ return this->myElements[myIndices[theIndex]];
}
protected: //! @name Fields
#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>
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