KD-tree node in 8 bytes.
More...
#include <mitsuba/render/gkdtree.h>
template<typename AABBType>
struct mitsuba::KDTreeBase< AABBType >::KDNode
KD-tree node in 8 bytes.
template<typename AABBType>
Enumerator |
---|
ETypeMask |
|
EIndirectionMask |
|
ELeafOffsetMask |
|
EInnerAxisMask |
|
EInnerOffsetMask |
|
ERelOffsetLimit |
|
template<typename AABBType>
Return the split axis (assuming that this is an interior node)
template<typename AABBType>
Return the index of an indirection node.
template<typename AABBType>
Return the left child (assuming that this is an interior node)
template<typename AABBType>
Return the left child (assuming that this is an interior node)
template<typename AABBType>
Assuming this is a leaf node, return the last primitive index.
template<typename AABBType>
Assuming this is a leaf node, return the first primitive index.
template<typename AABBType>
Return the left child (assuming that this is an interior node)
template<typename AABBType>
Return the sibling of the current node.
template<typename AABBType>
Return the split plane location (assuming that this is an interior node)
template<typename AABBType>
Initialize an interior indirection node.
Indirections are necessary whenever the children cannot be referenced using a relative pointer, which can happen when they lie in different memory chunks. In this case, the node stores an index into a globally shared pointer list.
template<typename AABBType>
Initialize an interior kd-Tree node. Reports a failure if the relative offset to the left child node is too large.
template<typename AABBType>
void mitsuba::KDTreeBase< AABBType >::KDNode::initLeafNode |
( |
unsigned int |
offset, |
|
|
unsigned int |
numPrims |
|
) |
| |
|
inline |
Initialize a leaf kd-Tree node.
template<typename AABBType>
Is this an indirection node?
template<typename AABBType>
template<typename AABBType>
Return a string representation.
template<typename AABBType>
template<typename AABBType>
End offset of the primitive list.
template<typename AABBType>
The documentation for this struct was generated from the following file: