|
|
| | BOPTools_BoxSelector () |
| | Empty constructor.
|
| |
|
| void | Clear () |
| | Clears the indices.
|
| |
| void | SetBox (const BVH_Box< Standard_Real, Dimension > &theBox) |
| | Sets the box.
|
| |
| const TColStd_ListOfInteger & | Indices () const |
| | Returns the list of accepted indices.
|
| |
|
| virtual Standard_Boolean | RejectNode (const BVH_VecNd &theCMin, const BVH_VecNd &theCMax, Standard_Boolean &theIsInside) const override |
| | Checks if the box should be rejected.
|
| |
| Standard_Boolean | RejectElement (const Standard_Integer theIndex) |
| | Checks if the element should be rejected.
|
| |
| virtual Standard_Boolean | AcceptMetric (const Standard_Boolean &theIsInside) const override |
| | Checks if the metric of the node may be accepted.
|
| |
| virtual Standard_Boolean | Accept (const Standard_Integer theIndex, const Standard_Boolean &theIsInside) override |
| | Accepts the element with the index <theIndex> in BVH tree.
|
| |
| | BVH_Traverse () |
| | Constructor.
|
| |
| void | SetBVHSet (BVH_BoxSet< Standard_Real, Dimension, Standard_Integer > *theBVHSet) |
| | Sets the BVH Set containing the BVH tree.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| virtual Standard_Boolean | RejectMetric (const MetricType &) const |
| | Rejects the node by the metric.
|
| |
| virtual Standard_Boolean | Stop () const |
| | Returns the flag controlling the tree descend. Returns true if the tree descend should be stopped.
|
| |
template<
int Dimension>
class BOPTools_BoxSelector< Dimension >
Template Selector for elements selection from BVH tree.