MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits Class Reference
+ Inheritance diagram for meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits:

Public Member Functions

None __init__ (self)
 
None __init__ (self, AABBTreeBase_ObjTreeTraits arg0)
 
Box3f getBoundingBox (self)
 
None getLeafOrder (self, BMap_ObjId_ObjId leafMap)
 
None getLeafOrderAndReset (self, BMap_ObjId_ObjId leafMap)
 
NodeBitSet getNodesFromLeaves (self, ObjBitSet leaves)
 
ObjBitSet getSubtreeLeaves (self, NodeId subtreeRoot)
 
std_vector_Id_NodeTag getSubtrees (self, int minNum)
 
int heapBytes (self)
 
Vector_AABBTreeNode_ObjTreeTraits_NodeId nodes (self)
 
int numLeaves (self)
 
AABBTreeNode_ObjTreeTraits operator (self, NodeId nid)
 

Static Public Member Functions

NodeId rootNodeId ()
 

Static Public Attributes

 BoxT = Box3f
 
 LeafBMap = BMap_ObjId_ObjId
 
 LeafBitSet = ObjBitSet
 
 LeafId = ObjId
 
 Node = AABBTreeNode_ObjTreeTraits
 
 NodeVec = Vector_AABBTreeNode_ObjTreeTraits_NodeId
 
 Traits = ObjTreeTraits
 

Detailed Description

Generated from:  MR::AABBTreeBase<MR::ObjTreeTraits>

base class for most AABB-trees (except for AABBTreePoints)

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.__init__ ( self)

◆ __init__() [2/2]

None meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.__init__ ( self,
AABBTreeBase_ObjTreeTraits arg0 )

Member Function Documentation

◆ getBoundingBox()

Box3f meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getBoundingBox ( self)
returns the root node bounding box

◆ getLeafOrder()

None meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getLeafOrder ( self,
BMap_ObjId_ObjId leafMap )
fills map: LeafId -> leaf#;
buffer in leafMap must be resized before the call, and caller is responsible for filling missing leaf elements

◆ getLeafOrderAndReset()

None meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getLeafOrderAndReset ( self,
BMap_ObjId_ObjId leafMap )
fills map: LeafId -> leaf#, then resets leaf order to 0,1,2,...;
buffer in leafMap must be resized before the call, and caller is responsible for filling missing leaf elements

◆ getNodesFromLeaves()

NodeBitSet meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getNodesFromLeaves ( self,
ObjBitSet leaves )
returns set of nodes containing among direct or indirect children given leaves

◆ getSubtreeLeaves()

ObjBitSet meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getSubtreeLeaves ( self,
NodeId subtreeRoot )
returns all leaves in the subtree with given root

◆ getSubtrees()

std_vector_Id_NodeTag meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.getSubtrees ( self,
int minNum )
returns at least given number of top-level not-intersecting subtrees, union of which contain all tree leaves

◆ heapBytes()

int meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ nodes()

Vector_AABBTreeNode_ObjTreeTraits_NodeId meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.nodes ( self)
const-access to all nodes

◆ numLeaves()

int meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.numLeaves ( self)
returns the number of leaves in whole tree

◆ operator()

AABBTreeNode_ObjTreeTraits meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.operator ( self,
NodeId nid )
const-access to any node

◆ rootNodeId()

NodeId meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.rootNodeId ( )
static
returns root node id

Member Data Documentation

◆ BoxT

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.BoxT = Box3f
static

◆ LeafBitSet

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.LeafBitSet = ObjBitSet
static

◆ LeafBMap

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.LeafBMap = BMap_ObjId_ObjId
static

◆ LeafId

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.LeafId = ObjId
static

◆ Node

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.Node = AABBTreeNode_ObjTreeTraits
static

◆ NodeVec

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.NodeVec = Vector_AABBTreeNode_ObjTreeTraits_NodeId
static

◆ Traits

meshlib.mrmeshpy.AABBTreeBase_ObjTreeTraits.Traits = ObjTreeTraits
static

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