|
|
| BOPTools_BoxSelector () |
| Empty constructor. More...
|
|
|
void | Clear () |
| Clears the indices. More...
|
|
void | SetBox (const BVH_Box< Standard_Real, Dimension > &theBox) |
| Sets the box. More...
|
|
const TColStd_ListOfInteger & | Indices () const |
| Returns the list of accepted indices. More...
|
|
|
virtual Standard_Boolean | RejectNode (const BVH_VecNd &theCMin, const BVH_VecNd &theCMax, Standard_Boolean &theIsInside) const override |
| Checks if the box should be rejected. More...
|
|
Standard_Boolean | RejectElement (const Standard_Integer theIndex) |
| Checks if the element should be rejected. More...
|
|
virtual Standard_Boolean | AcceptMetric (const Standard_Boolean &theIsInside) const override |
| Checks if the metric of the node may be accepted. More...
|
|
virtual Standard_Boolean | Accept (const Standard_Integer theIndex, const Standard_Boolean &theIsInside) override |
| Accepts the element with the index <theIndex> in BVH tree. More...
|
|
| BVH_Traverse () |
| Constructor. More...
|
|
void | SetBVHSet (BVH_BoxSet< Standard_Real, Dimension, Standard_Integer > *theBVHSet) |
| Sets the BVH Set containing the BVH tree. More...
|
|
virtual Standard_Boolean | RejectNode (const BVH_VecNt &theCornerMin, const BVH_VecNt &theCornerMax, Standard_Boolean &theMetric) const=0 |
| Rejection of the node by bounding box. Metric is computed to choose the best branch. Returns true if the node should be rejected, false otherwise. More...
|
|
Standard_Integer | Select () |
| Selection of the elements from the BVH tree by the rules defined in Accept/Reject methods. The method requires the BVHSet containing BVH tree to be set. Returns the number of accepted elements. More...
|
|
Standard_Integer | Select (const opencascade::handle< BVH_Tree< Standard_Real, Dimension >> &theBVH) |
| Performs selection of the elements from the BVH tree by the rules defined in Accept/Reject methods. Returns the number of accepted elements. More...
|
|
virtual Standard_Boolean | IsMetricBetter (const MetricType &, const MetricType &) const |
| Compares the two metrics and chooses the best one. Returns true if the first metric is better than the second, false otherwise. More...
|
|
virtual Standard_Boolean | RejectMetric (const MetricType &) const |
| Rejects the node by the metric. More...
|
|
virtual Standard_Boolean | Stop () const |
| Returns the flag controlling the tree descend. Returns true if the tree descend should be stopped. More...
|
|
template<int Dimension>
class BOPTools_BoxSelector< Dimension >
Template Selector for elements selection from BVH tree.