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

Classes

class  ConstPoint
class  Point

Public Member Functions

None __init__ (self, ConstPointCloud pointCloud)
None __init__ (self, ConstMesh mesh)
None __init__ (self, ConstVertCoords points, ConstVertBitSet validPoints=None)
None getLeafOrderAndReset (self, VertBMap vertMap)
None refit (self, ConstVertCoords newCoords, ConstVertBitSet changedVerts)
Public Member Functions inherited from mrmeshpy.ConstAABBTreePoints
 __init__ (self, *args, **kwargs)
bool empty (self)
Box3f getBoundingBox (self)
None getLeafOrder (self, VertBMap vertMap)
int heapBytes (self)
tuple[int, int] leafPointRange (self, int leaf)
int numLeaves (self)
Const_std_vector_AABBTreePoints_Point orderedPoints (self)
int rootRef (self)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstAABBTreePoints
typing MaxDepth = 16
typing MaxNumPointsInLeaf = 16

Detailed Description

Generated from:  MR::AABBTreePoints

bounding volume hierarchy of a point cloud with up to 4 children per node in SIMD layout: every internal node keeps
the boxes of its children; the points of leaf l are orderedPoints() [MaxNumPointsInLeaf * l, MaxNumPointsInLeaf * ( l + 1 ) ),
all leaves are full except the last one

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.AABBTreePoints.__init__ ( self,
ConstPointCloud pointCloud )
creates tree for given point cloud

◆ __init__() [2/3]

None mrmeshpy.AABBTreePoints.__init__ ( self,
ConstMesh mesh )
creates tree for vertices of given mesh

◆ __init__() [3/3]

None mrmeshpy.AABBTreePoints.__init__ ( self,
ConstVertCoords points,
ConstVertBitSet validPoints = None )
creates tree from given valid points

Member Function Documentation

◆ getLeafOrderAndReset()

None mrmeshpy.AABBTreePoints.getLeafOrderAndReset ( self,
VertBMap vertMap )
returns the mapping original VertId to new id following the points order in the tree;
then resets leaf order as if the points were renumberd following the mapping;
buffer in vertMap must be resized before the call, and caller is responsible for filling missing vertex elements

◆ refit()

None mrmeshpy.AABBTreePoints.refit ( self,
ConstVertCoords newCoords,
ConstVertBitSet changedVerts )
updates bounding boxes of the nodes containing changed vertices;
this is a faster alternative to full tree rebuild (but the tree after refit might be less efficient)
\\param newCoords coordinates of all vertices including changed ones;
\\param changedVerts vertex ids with modified coordinates (since tree construction or last refit), nullptr means all vertices

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