|
|
|
| | BVH_PairDistance () |
| |
|
Computes the distance between two BVH trees
|
| NumType | ComputeDistance () |
| |
|
|
| bool | IsDone () const |
| | Returns the computed distance.
|
| |
| NumType | Distance () const |
| | Returns the computed distance.
|
| |
|
Compares the two metrics and chooses the best one
|
| bool | IsMetricBetter (const NumType &theLeft, const NumType &theRight) const override |
| | Computes the distance between boxes of the nodes.
|
| |
| bool | RejectNode (const BVH_VecNt &theCornerMin1, const BVH_VecNt &theCornerMax1, const BVH_VecNt &theCornerMin2, const BVH_VecNt &theCornerMax2, NumType &theMetric) const override |
| | Computes the distance between boxes of the nodes.
|
| |
| bool | RejectMetric (const NumType &theMetric) const override |
| | Rejects the branch by the metric.
|
| |
| bool | Stop () const override |
| | Returns the flag controlling the tree descend.
|
| |
| | BVH_PairTraverse () |
| |
| void | SetBVHSets (BVHSetType *theBVHSet1, BVHSetType *theBVHSet2) |
| |
| virtual bool | RejectNode (const BVH_VecNt &theCornerMin1, const BVH_VecNt &theCornerMax1, const BVH_VecNt &theCornerMin2, const BVH_VecNt &theCornerMax2, NumType &theMetric) const=0 |
| | Leaf element acceptance. Returns true if the pair of elements is accepted, false otherwise.
|
| |
| virtual bool | Accept (const int theIndex1, const int theIndex2)=0 |
| | Leaf element acceptance. Returns true if the pair of elements is accepted, false otherwise.
|
| |
| int | Select () |
| | Performs selection of the elements from two BVH trees by the rules defined in Accept/Reject methods. Returns the number of accepted pairs of elements.
|
| |
| int | Select (const opencascade::handle< BVH_Tree< NumType, Dimension > > &theBVH1, const opencascade::handle< BVH_Tree< NumType, Dimension > > &theBVH2) |
| | Performs selection of the elements from two BVH trees by the rules defined in Accept/Reject methods. Returns the number of accepted pairs of elements.
|
| |
| virtual bool | IsMetricBetter (const MetricType &, const MetricType &) const |
| |
| virtual bool | RejectMetric (const MetricType &) const |
| |
Abstract class for computation of the min distance between elements of two BVH trees. To use this class it is required to define only the method Accept to compute the distance between elements of the trees.
- Template Parameters
-
| NumType | Numeric data type |
| Dimension | Vector dimension |
| BVHSetType | Type of the set on which BVH is built |