File indexing completed on 2026-09-22 08:57:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOPTools_BoxTree_HeaderFile
0016 #define BOPTools_BoxTree_HeaderFile
0017
0018 #include <BOPTools_BoxSelector.hxx>
0019 #include <BOPTools_PairSelector.hxx>
0020 #include <Standard_Integer.hxx>
0021 #include <BVH_LinearBuilder.hxx>
0022
0023
0024
0025 template <class NumType, int Dimension, class DataType>
0026 class BOPTools_BoxSet : public BVH_BoxSet<NumType, Dimension, DataType>
0027 {
0028 public:
0029
0030 BOPTools_BoxSet(const opencascade::handle<BVH_Builder<NumType, Dimension>>& theBuilder = nullptr)
0031 : BVH_BoxSet<NumType, Dimension, DataType>(
0032 theBuilder.IsNull() ? new BVH_LinearBuilder<NumType, Dimension>() : theBuilder)
0033 {
0034 }
0035 };
0036
0037
0038 typedef BOPTools_BoxSet<double, 2, int> BOPTools_Box2dTree;
0039 typedef BOPTools_BoxSelector<2> BOPTools_Box2dTreeSelector;
0040 typedef BOPTools_PairSelector<2> BOPTools_Box2dPairSelector;
0041
0042
0043 typedef BOPTools_BoxSet<double, 3, int> BOPTools_BoxTree;
0044 typedef BOPTools_BoxSelector<3> BOPTools_BoxTreeSelector;
0045 typedef BOPTools_PairSelector<3> BOPTools_BoxPairSelector;
0046
0047 #endif