A method to split the node along a given axis. The list of indices is reorganized according to the split values.
Parameters:
axis
[in] splitting axis index
builder
[in] the tree builder
Returns:
the number of primitives assigned to the first child
bool AABBTreeNode::Subdivide
(
AABBTreeBuilder *
builder
)
[protected]
A method to subdivide the node.
N / \ / \ N/2 N/2 / \ / \ N/4 N/4 N/4 N/4 (etc)
A well-balanced tree should have a O(log n) depth. A degenerate tree would have a O(n) depth. Note a perfectly-balanced tree is not well-suited to collision detection anyway.
Parameters:
builder
[in] the tree builder
Returns:
true if success
The documentation for this class was generated from the following files: