A node in the tree, contains the AABox for the tree and any child nodes or triangles.
More...
#include <AABBTreeBuilder.h>
A node in the tree, contains the AABox for the tree and any child nodes or triangles.
◆ CalculateSAHCost()
float AABBTreeBuilder::Node::CalculateSAHCost |
( |
const Array< Node > & |
inNodes, |
|
|
float |
inCostTraversal, |
|
|
float |
inCostLeaf |
|
) |
| const |
Calculate the total cost of the tree using the surface area heuristic.
◆ GetLeafNodeCount()
uint AABBTreeBuilder::Node::GetLeafNodeCount |
( |
const Array< Node > & |
inNodes | ) |
const |
Number of leaf nodes in tree.
◆ GetMaxDepth()
uint AABBTreeBuilder::Node::GetMaxDepth |
( |
const Array< Node > & |
inNodes | ) |
const |
◆ GetMinDepth()
◆ GetNChildren()
void AABBTreeBuilder::Node::GetNChildren |
( |
const Array< Node > & |
inNodes, |
|
|
uint |
inN, |
|
|
Array< const Node * > & |
outChildren |
|
) |
| const |
Recursively get children (breadth first) to get in total inN children (or less if there are no more)
◆ GetNodeCount()
uint AABBTreeBuilder::Node::GetNodeCount |
( |
const Array< Node > & |
inNodes | ) |
const |
◆ GetTriangleCount()
uint AABBTreeBuilder::Node::GetTriangleCount |
( |
| ) |
const |
|
inline |
Get number of triangles in this node.
◆ GetTriangleCountInTree()
uint AABBTreeBuilder::Node::GetTriangleCountInTree |
( |
const Array< Node > & |
inNodes | ) |
const |
Get triangle count in tree.
◆ GetTriangleCountPerNode()
void AABBTreeBuilder::Node::GetTriangleCountPerNode |
( |
const Array< Node > & |
inNodes, |
|
|
float & |
outAverage, |
|
|
uint & |
outMin, |
|
|
uint & |
outMax |
|
) |
| const |
Calculate min and max triangles per node.
◆ HasChildren()
bool AABBTreeBuilder::Node::HasChildren |
( |
| ) |
const |
|
inline |
Check if this node has any children.
◆ AABBTreeBuilder
◆ cInvalidNodeIndex
Indicates that there is no child.
◆ mBounds
AABox AABBTreeBuilder::Node::mBounds |
◆ mChild
Child node indices (if no triangles)
◆ mNumTriangles
uint AABBTreeBuilder::Node::mNumTriangles = 0 |
◆ mTrianglesBegin
uint AABBTreeBuilder::Node::mTrianglesBegin |
Triangles (if no child nodes)
The documentation for this class was generated from the following files: