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.
◆ Node()
◆ ~Node()
AABBTreeBuilder::Node::~Node |
( |
| ) |
|
◆ CalculateSAHCost()
float AABBTreeBuilder::Node::CalculateSAHCost |
( |
float |
inCostTraversal, |
|
|
float |
inCostLeaf |
|
) |
| const |
Calculate the total cost of the tree using the surface area heuristic.
◆ GetLeafNodeCount()
uint AABBTreeBuilder::Node::GetLeafNodeCount |
( |
| ) |
const |
Number of leaf nodes in tree.
◆ GetMaxDepth()
uint AABBTreeBuilder::Node::GetMaxDepth |
( |
| ) |
const |
◆ GetMinDepth()
uint AABBTreeBuilder::Node::GetMinDepth |
( |
| ) |
const |
◆ GetNChildren()
void AABBTreeBuilder::Node::GetNChildren |
( |
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 |
◆ GetTriangleCount()
uint AABBTreeBuilder::Node::GetTriangleCount |
( |
| ) |
const |
|
inline |
Get number of triangles in this node.
◆ GetTriangleCountInTree()
uint AABBTreeBuilder::Node::GetTriangleCountInTree |
( |
| ) |
const |
Get triangle count in tree.
◆ GetTriangleCountPerNode()
void AABBTreeBuilder::Node::GetTriangleCountPerNode |
( |
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
◆ mBounds
AABox AABBTreeBuilder::Node::mBounds |
◆ mChild
Node* AABBTreeBuilder::Node::mChild[2] |
Child nodes (if no triangles)
◆ mTriangles
Triangles (if no child nodes)
The documentation for this class was generated from the following files: