MeshLib C# Docs
Loading...
Searching...
No Matches

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...

Inheritance diagram for MR.Const_AABBTreeObjects:

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[].

Detailed Description

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.

Constructor & Destructor Documentation

◆ Const_AABBTreeObjects() [1/5]

unsafe MR.Const_AABBTreeObjects.Const_AABBTreeObjects ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_AABBTreeObjects() [2/5]

unsafe MR.Const_AABBTreeObjects.Const_AABBTreeObjects ( MR._ByValue_AABBTreeObjects _other)
inline

Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.

◆ Const_AABBTreeObjects() [3/5]

MR.Const_AABBTreeObjects.Const_AABBTreeObjects ( Const_AABBTreeObjects _other)
inline

Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.

◆ Const_AABBTreeObjects() [4/5]

MR.Const_AABBTreeObjects.Const_AABBTreeObjects ( AABBTreeObjects _other)
inline

Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.

◆ Const_AABBTreeObjects() [5/5]

unsafe MR.Const_AABBTreeObjects.Const_AABBTreeObjects ( MR._ByValue_Vector_MRMeshOrPointsXf_MRObjId objs)
inline

creates tree for given set of objects each with its own transformation Generated from constructor MR.AABBTreeObjects.AABBTreeObjects.

Member Function Documentation

◆ box()

unsafe ref readonly MR.Box3f MR.Const_AABBTreeObjects.box ( MR.NodeId n)
inline

returns the bounding box of given node or leaf Generated from method MR.AABBTreeObjects.box.

◆ Dispose() [1/2]

virtual void MR.Const_AABBTreeObjects.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_AABBTreeObjects.Dispose ( bool disposing)
inlineprotectedvirtual

◆ empty()

unsafe bool MR.Const_AABBTreeObjects.empty ( )
inline

returns true if the tree has no leaves Generated from method MR.AABBTreeObjects.empty.

◆ getBoundingBox()

unsafe MR.Box3f MR.Const_AABBTreeObjects.getBoundingBox ( )
inline

returns the root node bounding box Generated from method MR.AABBTreeObjects.getBoundingBox.

◆ getLeafOrder()

unsafe void MR.Const_AABBTreeObjects.getLeafOrder ( MR.BMap_MRObjId_MRObjId leafMap)
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.

◆ getNodesFromLeaves()

unsafe MR.NodeBitSet MR.Const_AABBTreeObjects.getNodesFromLeaves ( MR.Const_ObjBitSet leaves)
inline

returns set of not-leaf nodes containing among direct or indirect children given leaves Generated from method MR.AABBTreeObjects.getNodesFromLeaves.

◆ getSubtreeLeaves()

unsafe MR.ObjBitSet MR.Const_AABBTreeObjects.getSubtreeLeaves ( MR.NodeId subtreeRoot)
inline

returns all leaves in the subtree with given root (can be a leaf) Generated from method MR.AABBTreeObjects.getSubtreeLeaves.

◆ getSubtrees()

unsafe MR.Std.Vector_MRNodeId MR.Const_AABBTreeObjects.getSubtrees ( int minNum)
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.

◆ heapBytes()

unsafe nuint MR.Const_AABBTreeObjects.heapBytes ( )
inline

returns the amount of memory this object occupies on heap Generated from method MR.AABBTreeObjects.heapBytes.

◆ isLeaf()

bool MR.Const_AABBTreeObjects.isLeaf ( MR.NodeId n)
inlinestatic

returns true if given node id is in fact a leaf (encoded as negative number) Generated from method MR.AABBTreeObjects.isLeaf.

◆ leaf()

unsafe MR.Const_BoxedLeaf_MRObjTreeTraits MR.Const_AABBTreeObjects.leaf ( MR.NodeId n)
inline

returns the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leaf.

◆ leafId()

unsafe MR.ObjId MR.Const_AABBTreeObjects.leafId ( MR.NodeId n)
inline

returns the id of the leaf encoded in given node id Generated from method MR.AABBTreeObjects.leafId.

◆ leaves()

unsafe MR.Const_Vector_MRBoxedLeafMRObjTreeTraits MR.Const_AABBTreeObjects.leaves ( )
inline

all leaves in the order of the tree right after its construction Generated from method MR.AABBTreeObjects.leaves.

◆ nodes()

unsafe MR.Const_Vector_MRAABBTreeNodeMRObjTreeTraits_MRNodeId MR.Const_AABBTreeObjects.nodes ( )
inline

const-access to all not-leaf nodes, a tree with N leaves has N-1 nodes Generated from method MR.AABBTreeObjects.nodes.

◆ numLeaves()

unsafe nuint MR.Const_AABBTreeObjects.numLeaves ( )
inline

returns the number of leaves in whole tree Generated from method MR.AABBTreeObjects.numLeaves.

◆ obj()

unsafe MR.Const_MeshOrPoints MR.Const_AABBTreeObjects.obj ( MR.ObjId oi)
inline

gets object by its id Generated from method MR.AABBTreeObjects.obj.

◆ operator MR.Const_AABBTreeBase_MRObjTreeTraits()

unsafe implicit MR.Const_AABBTreeObjects.operator MR.Const_AABBTreeBase_MRObjTreeTraits ( Const_AABBTreeObjects self)
inlinestatic

◆ rootNodeId()

unsafe MR.NodeId MR.Const_AABBTreeObjects.rootNodeId ( )
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.

◆ toLocal() [1/2]

unsafe MR.Const_Vector_MRAffineXf3f_MRObjId MR.Const_AABBTreeObjects.toLocal ( )
inline

gets mapping: objId -> its transformation from world space to local space Generated from method MR.AABBTreeObjects.toLocal.

◆ toLocal() [2/2]

unsafe ref readonly MR.AffineXf3f MR.Const_AABBTreeObjects.toLocal ( MR.ObjId oi)
inline

gets transformation from world space to local space of given object Generated from method MR.AABBTreeObjects.toLocal.

◆ toWorld()

unsafe ref readonly MR.AffineXf3f MR.Const_AABBTreeObjects.toWorld ( MR.ObjId oi)
inline

gets transformation from local space of given object to world space Generated from method MR.AABBTreeObjects.toWorld.

Property Documentation

◆ this[MR.NodeId nid]

unsafe MR.Const_AABBTreeNode_MRObjTreeTraits MR.Const_AABBTreeObjects.this[MR.NodeId nid]
get

const-access to any not-leaf node Generated from method MR::AABBTreeObjects::operator[].


The documentation for this class was generated from the following file: