MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstAABBTreeBase_ObjTreeTraits Class Reference
Inheritance diagram for mrmeshpy.ConstAABBTreeBase_ObjTreeTraits:

Public Member Functions

ConstAABBTreeNode_ObjTreeTraits __getitem__ (self, ConstNodeId nid)
 __init__ (self, *args, **kwargs)
ConstBox3f box (self, ConstNodeId n)
bool empty (self)
Box3f getBoundingBox (self)
None getLeafOrder (self, BMap_ObjId_ObjId leafMap)
NodeBitSet getNodesFromLeaves (self, ConstObjBitSet leaves)
ObjBitSet getSubtreeLeaves (self, ConstNodeId subtreeRoot)
std_vector_Id_NodeTag getSubtrees (self, int minNum)
int heapBytes (self)
ConstBoxedLeaf_ObjTreeTraits leaf (self, ConstNodeId n)
ObjId leafId (self, ConstNodeId n)
ConstVector_BoxedLeaf_ObjTreeTraits leaves (self)
ConstVector_AABBTreeNode_ObjTreeTraits_NodeId nodes (self)
int numLeaves (self)
NodeId rootNodeId (self)

Static Public Member Functions

bool isLeaf (ConstNodeId n)

Static Public Attributes

 BoxT = Box3f
 ConstBoxT = ConstBox3f
 ConstLeaf = ConstBoxedLeaf_ObjTreeTraits
 ConstLeafBMap = ConstBMap_ObjId_ObjId
 ConstLeafBitSet = ConstObjBitSet
 ConstLeafId = ConstObjId
 ConstLeaves = ConstVector_BoxedLeaf_ObjTreeTraits
 ConstNode = ConstAABBTreeNode_ObjTreeTraits
 ConstNodeVec = ConstVector_AABBTreeNode_ObjTreeTraits_NodeId
 ConstTraits = ConstObjTreeTraits
 Leaf = BoxedLeaf_ObjTreeTraits
 LeafBMap = BMap_ObjId_ObjId
 LeafBitSet = ObjBitSet
 LeafId = ObjId
 Leaves = Vector_BoxedLeaf_ObjTreeTraits
 Node = AABBTreeNode_ObjTreeTraits
 NodeVec = Vector_AABBTreeNode_ObjTreeTraits_NodeId
 Traits = ObjTreeTraits

Detailed Description

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

base class for the AABB-trees of polylines and objects

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstAABBTreeBase_ObjTreeTraits) -> None

2. __init__(self: meshlib.mrmeshpy.ConstAABBTreeBase_ObjTreeTraits, arg0: meshlib.mrmeshpy.ConstAABBTreeBase_ObjTreeTraits) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstAABBTreeBase_ObjTreeTraits, : meshlib.mrmeshpy.ConstAABBTreeBase_ObjTreeTraits) -> None

Member Function Documentation

◆ __getitem__()

ConstAABBTreeNode_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.__getitem__ ( self,
ConstNodeId nid )
const-access to any not-leaf node

◆ box()

ConstBox3f mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.box ( self,
ConstNodeId n )
returns the bounding box of given node or leaf

◆ empty()

bool mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.empty ( self)
returns true if the tree has no leaves

◆ getBoundingBox()

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

◆ getLeafOrder()

None mrmeshpy.ConstAABBTreeBase_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

◆ getNodesFromLeaves()

NodeBitSet mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.getNodesFromLeaves ( self,
ConstObjBitSet leaves )
returns set of not-leaf nodes containing among direct or indirect children given leaves

◆ getSubtreeLeaves()

ObjBitSet mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.getSubtreeLeaves ( self,
ConstNodeId subtreeRoot )
returns all leaves in the subtree with given root (can be a leaf)

◆ getSubtrees()

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

◆ heapBytes()

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

◆ isLeaf()

bool mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.isLeaf ( ConstNodeId n)
static
returns true if given node id is in fact a leaf (encoded as negative number)

◆ leaf()

ConstBoxedLeaf_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leaf ( self,
ConstNodeId n )
returns the leaf encoded in given node id

◆ leafId()

ObjId mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leafId ( self,
ConstNodeId n )
returns the id of the leaf encoded in given node id

◆ leaves()

ConstVector_BoxedLeaf_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leaves ( self)
all leaves in the order of the tree right after its construction

◆ nodes()

ConstVector_AABBTreeNode_ObjTreeTraits_NodeId mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.nodes ( self)
const-access to all not-leaf nodes, a tree with N leaves has N-1 nodes

◆ numLeaves()

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

◆ rootNodeId()

NodeId mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.rootNodeId ( self)
returns root node id: 0 if the tree has at least two leaves, or the only leaf;
must not be called for empty tree

Member Data Documentation

◆ BoxT

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.BoxT = Box3f
static

◆ ConstBoxT

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstBoxT = ConstBox3f
static

◆ ConstLeaf

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstLeaf = ConstBoxedLeaf_ObjTreeTraits
static

◆ ConstLeafBitSet

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstLeafBitSet = ConstObjBitSet
static

◆ ConstLeafBMap

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstLeafBMap = ConstBMap_ObjId_ObjId
static

◆ ConstLeafId

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstLeafId = ConstObjId
static

◆ ConstLeaves

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstLeaves = ConstVector_BoxedLeaf_ObjTreeTraits
static

◆ ConstNode

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstNode = ConstAABBTreeNode_ObjTreeTraits
static

◆ ConstNodeVec

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstNodeVec = ConstVector_AABBTreeNode_ObjTreeTraits_NodeId
static

◆ ConstTraits

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.ConstTraits = ConstObjTreeTraits
static

◆ Leaf

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.Leaf = BoxedLeaf_ObjTreeTraits
static

◆ LeafBitSet

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.LeafBitSet = ObjBitSet
static

◆ LeafBMap

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.LeafBMap = BMap_ObjId_ObjId
static

◆ LeafId

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.LeafId = ObjId
static

◆ Leaves

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.Leaves = Vector_BoxedLeaf_ObjTreeTraits
static

◆ Node

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.Node = AABBTreeNode_ObjTreeTraits
static

◆ NodeVec

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.NodeVec = Vector_AABBTreeNode_ObjTreeTraits_NodeId
static

◆ Traits

mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.Traits = ObjTreeTraits
static

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