Open CASCADE Technology
6.9.1
|
Performs construction of BVH tree using bounding boxes (AABBs) of abstract objects. More...
#include <BVH_Tree.hxx>
Public Member Functions | |
BVH_Builder (const Standard_Integer theLeafNodeSize, const Standard_Integer theMaxTreeDepth) | |
Creates new abstract BVH builder. More... | |
virtual | ~BVH_Builder () |
Releases resources of BVH builder. More... | |
virtual void | Build (BVH_Set< T, N > *theSet, BVH_Tree< T, N > *theBVH, const BVH_Box< T, N > &theBox)=0 |
Builds BVH using specific algorithm. More... | |
Protected Member Functions | |
void | UpdateDepth (BVH_Tree< T, N > *theBVH, const Standard_Integer theLevel) |
Updates depth of constructed BVH tree. More... | |
Protected Attributes | |
Standard_Integer | myMaxTreeDepth |
Maximum depth of constructed BVH. More... | |
Standard_Integer | myLeafNodeSize |
Maximum number of objects per leaf. More... | |
Performs construction of BVH tree using bounding boxes (AABBs) of abstract objects.
T | Numeric data type |
N | Vector dimension |
BVH_Builder< T, N >::BVH_Builder | ( | const Standard_Integer | theLeafNodeSize, |
const Standard_Integer | theMaxTreeDepth | ||
) |
Creates new abstract BVH builder.
|
virtual |
Releases resources of BVH builder.
|
pure virtual |
Builds BVH using specific algorithm.
Implemented in BVH_LinearBuilder< T, N >, and BVH_QueueBuilder< T, N >.
|
inlineprotected |
Updates depth of constructed BVH tree.
|
protected |
Maximum number of objects per leaf.
|
protected |
Maximum depth of constructed BVH.