Public Member Functions | |
| auto | assign_from_another (_other:meshlib::Owned< meshlib::AABBTreePoints >) -> &mut meshlib::AABBTreePoints |
| auto | nodes () const -> &meshlib::Vector_MR_AABBTreePoints_Node_MR_NodeId |
| auto | index (nid:meshlib::NodeId) const -> &meshlib::AABBTreePoints_Node |
| auto | get_bounding_box () const -> meshlib::Box3f |
| auto | ordered_points () const -> &meshlib::std_vector_MR_AABBTreePoints_Point |
| void | get_leaf_order (vertMap:&mut meshlib::VertBMap) const |
| void | get_leaf_order_and_reset (vertMap:&mut meshlib::VertBMap) |
| auto | heap_bytes () const -> usize |
| void | refit (newCoords:&meshlib::VertCoords, changedVerts:Option<&meshlib::VertBitSet >) |
Static Public Member Functions | |
| static auto | construct_from_another (_other:meshlib::Owned< meshlib::AABBTreePoints >) -> meshlib::Owned< meshlib::AABBTreePoints > |
| static auto | construct_1_mr_point_cloud (pointCloud:&meshlib::PointCloud) -> meshlib::Owned< meshlib::AABBTreePoints > |
| static auto | construct_1_mr_mesh (mesh:&meshlib::Mesh) -> meshlib::Owned< meshlib::AABBTreePoints > |
| static auto | construct_2 (points:&meshlib::VertCoords, validPoints:Option<&meshlib::VertBitSet >) -> meshlib::Owned< meshlib::AABBTreePoints > |
| static auto | root_node_id () -> meshlib::NodeId |
| static auto | max_num_points_in_leaf () -> *const core::ffi::c_int |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
bounding volume hierarchy for point cloud structure Generated from class MR::AABBTreePoints.
Generated from class MR::AABBTreePoints. Heap-allocated instances are held in Owned<AABBTreePoints>.
| auto meshlib::AABBTreePoints::assign_from_another | ( | _other:meshlib::Owned< meshlib::AABBTreePoints > | ) | -> &mut meshlib::AABBTreePoints |
Generated from method MR::AABBTreePoints::operator=.
Calls MR_AABBTreePoints_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object. The reference to this object might be preserved in the return value.
|
static |
creates tree for vertices of given mesh Generated from constructor MR::AABBTreePoints::AABBTreePoints.
Calls MR_AABBTreePoints_Construct_1_MR_Mesh(). The reference to the parameter mesh might be preserved in the constructed object.
|
static |
creates tree for given point cloud Generated from constructor MR::AABBTreePoints::AABBTreePoints.
Calls MR_AABBTreePoints_Construct_1_MR_PointCloud(). The reference to the parameter pointCloud might be preserved in the constructed object.
|
static |
creates tree from given valid points Generated from constructor MR::AABBTreePoints::AABBTreePoints.
Calls MR_AABBTreePoints_Construct_2(). The reference to the parameter points might be preserved in the constructed object. The reference to the parameter validPoints might be preserved in the constructed object.
|
static |
Generated from constructor MR::AABBTreePoints::AABBTreePoints.
Calls MR_AABBTreePoints_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::AABBTreePoints::get_bounding_box | ( | ) | const -> meshlib::Box3f |
returns the root node bounding box Generated from method MR::AABBTreePoints::getBoundingBox.
Calls MR_AABBTreePoints_getBoundingBox().
| void meshlib::AABBTreePoints::get_leaf_order | ( | vertMap:&mut meshlib::VertBMap | ) | const |
returns the mapping original VertId to new id following the points order in the tree; buffer in vertMap must be resized before the call, and caller is responsible for filling missing vertex elements Generated from method MR::AABBTreePoints::getLeafOrder.
Calls MR_AABBTreePoints_getLeafOrder().
| void meshlib::AABBTreePoints::get_leaf_order_and_reset | ( | vertMap:&mut meshlib::VertBMap | ) |
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 Generated from method MR::AABBTreePoints::getLeafOrderAndReset.
Calls MR_AABBTreePoints_getLeafOrderAndReset().
| auto meshlib::AABBTreePoints::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::AABBTreePoints::heapBytes.
Calls MR_AABBTreePoints_heapBytes().
| auto meshlib::AABBTreePoints::index | ( | nid:meshlib::NodeId | ) | const -> &meshlib::AABBTreePoints_Node |
Generated from method MR::AABBTreePoints::operator[].
Calls MR_AABBTreePoints_index().
|
static |
maximum number of points in leaf node of tree (all of leafs should have this number of points except last one) Returns a pointer to a member variable of class MR::AABBTreePoints named MaxNumPointsInLeaf.
Calls MR_AABBTreePoints_Get_MaxNumPointsInLeaf().
| auto meshlib::AABBTreePoints::nodes | ( | ) | const -> &meshlib::Vector_MR_AABBTreePoints_Node_MR_NodeId |
Generated from method MR::AABBTreePoints::nodes.
Calls MR_AABBTreePoints_nodes().
| auto meshlib::AABBTreePoints::ordered_points | ( | ) | const -> &meshlib::std_vector_MR_AABBTreePoints_Point |
Generated from method MR::AABBTreePoints::orderedPoints.
Calls MR_AABBTreePoints_orderedPoints().
| void meshlib::AABBTreePoints::refit | ( | newCoords:&meshlib::VertCoords | , |
| changedVerts:Option<&meshlib::VertBitSet > | ) |
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)
| newCoords | coordinates of all vertices including changed ones; |
| changedVerts | vertex ids with modified coordinates (since tree construction or last refit), nullptr means all vertices Generated from method MR::AABBTreePoints::refit. |
Calls MR_AABBTreePoints_refit().
|
static |
Generated from method MR::AABBTreePoints::rootNodeId.
Calls MR_AABBTreePoints_rootNodeId().