tree containing world bounding boxes of individual objects having individual local-to-world transformations Generated from class MR.AABBTreeObjects. Base classes: Direct: (non-virtual) MR::AABBTreeBase<MR.ObjTreeTraits> This is the const half of the class. More...
Classes | |
| struct | _Underlying |
Public Member Functions | |
| virtual void | Dispose () |
| unsafe | Const_AABBTreeObjects () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | Const_AABBTreeObjects (MR._ByValue_AABBTreeObjects _other) |
| Generated from constructor MR.AABBTreeObjects.AABBTreeObjects. | |
| Const_AABBTreeObjects (Const_AABBTreeObjects _other) | |
| Generated from constructor MR.AABBTreeObjects.AABBTreeObjects. | |
| Const_AABBTreeObjects (AABBTreeObjects _other) | |
| Generated from constructor MR.AABBTreeObjects.AABBTreeObjects. | |
| unsafe | Const_AABBTreeObjects (MR._ByValue_Vector_MRMeshOrPointsXf_MRObjId objs) |
| creates tree for given set of objects each with its own transformation Generated from constructor MR.AABBTreeObjects.AABBTreeObjects. | |
| unsafe MR.Const_MeshOrPoints | obj (MR.ObjId oi) |
| gets object by its id Generated from method MR.AABBTreeObjects.obj. | |
| unsafe ref readonly MR.AffineXf3f | toWorld (MR.ObjId oi) |
| gets transformation from local space of given object to world space Generated from method MR.AABBTreeObjects.toWorld. | |
| unsafe ref readonly MR.AffineXf3f | toLocal (MR.ObjId oi) |
| gets transformation from world space to local space of given object Generated from method MR.AABBTreeObjects.toLocal. | |
| unsafe MR.Const_Vector_MRAffineXf3f_MRObjId | toLocal () |
| gets mapping: objId -> its transformation from world space to local space Generated from method MR.AABBTreeObjects.toLocal. | |
| unsafe MR.Const_Vector_MRAABBTreeNodeMRObjTreeTraits_MRNodeId | nodes () |
| const-access to all not-leaf nodes, a tree with N leaves has N-1 nodes Generated from method MR.AABBTreeObjects.nodes. | |
| unsafe MR.Const_Vector_MRBoxedLeafMRObjTreeTraits | leaves () |
| all leaves in the order of the tree right after its construction Generated from method MR.AABBTreeObjects.leaves. | |
| unsafe MR.Const_BoxedLeaf_MRObjTreeTraits | leaf (MR.NodeId n) |
| returns the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leaf. | |
| unsafe MR.ObjId | leafId (MR.NodeId n) |
| returns the id of the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leafId. | |
| unsafe ref readonly MR.Box3f | box (MR.NodeId n) |
| returns the bounding box of given node or leaf Generated from method MR.AABBTreeObjects.box. | |
| unsafe bool | empty () |
| returns true if the tree has no leaves Generated from method MR.AABBTreeObjects.empty. | |
| unsafe MR.NodeId | rootNodeId () |
| returns root node id: 0 if the tree has at least two leaves, or the only leaf; must not be called for empty tree Generated from method MR.AABBTreeObjects.rootNodeId. | |
| unsafe MR.Box3f | getBoundingBox () |
| returns the root node bounding box Generated from method MR.AABBTreeObjects.getBoundingBox. | |
| unsafe nuint | heapBytes () |
| returns the amount of memory this object occupies on heap Generated from method MR.AABBTreeObjects.heapBytes. | |
| unsafe nuint | numLeaves () |
| returns the number of leaves in whole tree Generated from method MR.AABBTreeObjects.numLeaves. | |
| unsafe MR.Std.Vector_MRNodeId | getSubtrees (int minNum) |
| returns at least given number of top-level not-intersecting subtrees (some can be leaves), union of which contain all tree leaves Generated from method MR.AABBTreeObjects.getSubtrees. | |
| unsafe MR.ObjBitSet | getSubtreeLeaves (MR.NodeId subtreeRoot) |
| returns all leaves in the subtree with given root (can be a leaf) Generated from method MR.AABBTreeObjects.getSubtreeLeaves. | |
| unsafe MR.NodeBitSet | getNodesFromLeaves (MR.Const_ObjBitSet leaves) |
| returns set of not-leaf nodes containing among direct or indirect children given leaves Generated from method MR.AABBTreeObjects.getNodesFromLeaves. | |
| unsafe void | getLeafOrder (MR.BMap_MRObjId_MRObjId leafMap) |
| fills map: LeafId -> leaf#; buffer in leafMap must be resized before the call, and caller is responsible for filling missing leaf elements Generated from method MR.AABBTreeObjects.getLeafOrder. | |
Static Public Member Functions | |
| static unsafe implicit | operator MR.Const_AABBTreeBase_MRObjTreeTraits (Const_AABBTreeObjects self) |
| static bool | isLeaf (MR.NodeId n) |
| returns true if given node id is in fact a leaf (encoded as negative number) Generated from method MR.AABBTreeObjects.isLeaf. | |
Protected Member Functions | |
| virtual unsafe void | Dispose (bool disposing) |
Properties | |
| unsafe MR.Const_AABBTreeNode_MRObjTreeTraits | this[MR.NodeId nid] [get] |
| const-access to any not-leaf node Generated from method MR::AABBTreeObjects::operator[]. | |
tree containing world bounding boxes of individual objects having individual local-to-world transformations Generated from class MR.AABBTreeObjects. Base classes: Direct: (non-virtual) MR::AABBTreeBase<MR.ObjTreeTraits> This is the const half of the class.
|
inline |
Constructs an empty (default-constructed) instance.
|
inline |
Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.
|
inline |
Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.
|
inline |
Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.
|
inline |
creates tree for given set of objects each with its own transformation Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.
returns the bounding box of given node or leaf Generated from method MR.AABBTreeObjects.box.
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inline |
returns true if the tree has no leaves Generated from method MR.AABBTreeObjects.empty.
|
inline |
returns the root node bounding box Generated from method MR.AABBTreeObjects.getBoundingBox.
|
inline |
fills map: LeafId -> leaf#; buffer in leafMap must be resized before the call, and caller is responsible for filling missing leaf elements Generated from method MR.AABBTreeObjects.getLeafOrder.
|
inline |
returns set of not-leaf nodes containing among direct or indirect children given leaves Generated from method MR.AABBTreeObjects.getNodesFromLeaves.
|
inline |
returns all leaves in the subtree with given root (can be a leaf) Generated from method MR.AABBTreeObjects.getSubtreeLeaves.
|
inline |
returns at least given number of top-level not-intersecting subtrees (some can be leaves), union of which contain all tree leaves Generated from method MR.AABBTreeObjects.getSubtrees.
|
inline |
returns the amount of memory this object occupies on heap Generated from method MR.AABBTreeObjects.heapBytes.
|
inlinestatic |
returns true if given node id is in fact a leaf (encoded as negative number) Generated from method MR.AABBTreeObjects.isLeaf.
|
inline |
returns the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leaf.
returns the id of the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leafId.
|
inline |
all leaves in the order of the tree right after its construction Generated from method MR.AABBTreeObjects.leaves.
|
inline |
const-access to all not-leaf nodes, a tree with N leaves has N-1 nodes Generated from method MR.AABBTreeObjects.nodes.
|
inline |
returns the number of leaves in whole tree Generated from method MR.AABBTreeObjects.numLeaves.
|
inline |
gets object by its id Generated from method MR.AABBTreeObjects.obj.
|
inlinestatic |
|
inline |
returns root node id: 0 if the tree has at least two leaves, or the only leaf; must not be called for empty tree Generated from method MR.AABBTreeObjects.rootNodeId.
|
inline |
gets mapping: objId -> its transformation from world space to local space Generated from method MR.AABBTreeObjects.toLocal.
|
inline |
gets transformation from world space to local space of given object Generated from method MR.AABBTreeObjects.toLocal.
|
inline |
gets transformation from local space of given object to world space Generated from method MR.AABBTreeObjects.toWorld.
|
get |
const-access to any not-leaf node Generated from method MR::AABBTreeObjects::operator[].