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) |
Generated from: MR::AABBTreeBase<MR::ObjTreeTraits> base class for the AABB-trees of polylines and objects
| 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
| ConstAABBTreeNode_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.__getitem__ | ( | self, | |
| ConstNodeId | nid ) |
const-access to any not-leaf node
| ConstBox3f mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.box | ( | self, | |
| ConstNodeId | n ) |
returns the bounding box of given node or leaf
| bool mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.empty | ( | self | ) |
returns true if the tree has no leaves
| Box3f mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.getBoundingBox | ( | self | ) |
returns the root node bounding box
| 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
| NodeBitSet mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.getNodesFromLeaves | ( | self, | |
| ConstObjBitSet | leaves ) |
returns set of not-leaf nodes containing among direct or indirect children given leaves
| ObjBitSet mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.getSubtreeLeaves | ( | self, | |
| ConstNodeId | subtreeRoot ) |
returns all leaves in the subtree with given root (can be a leaf)
| 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
| int mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.heapBytes | ( | self | ) |
returns the amount of memory this object occupies on heap
|
static |
returns true if given node id is in fact a leaf (encoded as negative number)
| ConstBoxedLeaf_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leaf | ( | self, | |
| ConstNodeId | n ) |
returns the leaf encoded in given node id
| ObjId mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leafId | ( | self, | |
| ConstNodeId | n ) |
returns the id of the leaf encoded in given node id
| ConstVector_BoxedLeaf_ObjTreeTraits mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.leaves | ( | self | ) |
all leaves in the order of the tree right after its construction
| 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
| int mrmeshpy.ConstAABBTreeBase_ObjTreeTraits.numLeaves | ( | self | ) |
returns the number of leaves in whole tree
| 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
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |