![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
The classes implement the traverse of the BVH tree. More...
#include <BVH_Traverse.hxx>

Public Member Functions | |
Metrics comparison for choosing the best branch | |
Compares the two metrics and chooses the best one. Returns true if the first metric is better than the second, false otherwise. | |
| virtual bool | IsMetricBetter (const MetricType &, const MetricType &) const |
Rejection of the node by metric | |
Rejects the node by the metric | |
| virtual bool | RejectMetric (const MetricType &) const |
Condition to stop the descend | |
Returns the flag controlling the tree descend. Returns true if the tree descend should be stopped. | |
| virtual bool | Stop () const |
Protected Member Functions | |
Constructors | |
Constructor | |
| BVH_BaseTraverse () | |
| Destructor. | |
| virtual | ~BVH_BaseTraverse ()=default |
| Destructor. | |
The classes implement the traverse of the BVH tree.
There are two traverse methods implemented:
To perform Selection of the elements from BVH_Tree using the traverse methods implemented here it is required to define Acceptance/Rejection rules in the following methods:
The selector of a single tree has an extra method which allows accepting the whole branches without any further checks (e.g. full inclusion test):
Two ways of selection are possible:
Here is the example of usage of the traverse to find the point-triangulation minimal distance.
Abstract class implementing the base Traverse interface required for selection of the elements from BVH tree.
| MetricType | Type of metric to perform more optimal tree descend |
|
inlineprotected |
Destructor.
|
protectedvirtualdefault |
Destructor.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |