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 |
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
| None mrmeshpy.AABBTreePoints.__init__ | ( | self, | |
| ConstPointCloud | pointCloud ) |
creates tree for given point cloud
| None mrmeshpy.AABBTreePoints.__init__ | ( | self, | |
| ConstMesh | mesh ) |
creates tree for vertices of given mesh
| None mrmeshpy.AABBTreePoints.__init__ | ( | self, | |
| ConstVertCoords | points, | ||
| ConstVertBitSet | validPoints = None ) |
creates tree from given valid points
| 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
| 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