#include <MRMesh/MRAABBTreeNode.h>
|
| using | LeafId = typename T::LeafId |
| using | BoxT = typename T::BoxT |
|
| BoxT | box |
| | bounding box of whole subtree
|
| NodeId | l |
| NodeId | r |
| | two children: each is either another node (non-negative id) or a leaf (encoded as negative number ~leafIndex)
|
|
| static bool | isLeaf (NodeId child) |
| | returns true if given child of a node is a leaf rather than another node
|
| static size_t | leafIndex (NodeId child) |
| | returns the index in the vector of leaves of the leaf encoded in given child of a node
|
| static NodeId | leafChild (size_t leafIndex) |
| | encodes given index in the vector of leaves as a child of a node
|
◆ BoxT
◆ LeafId
◆ AABBTreeNode() [1/2]
◆ AABBTreeNode() [2/2]
◆ box
bounding box of whole subtree
two children: each is either another node (non-negative id) or a leaf (encoded as negative number ~leafIndex)
The documentation for this struct was generated from the following file: