Class for deforming mesh using Bernstein interpolation. More...
Public Member Functions | |
| void | init (resolution:Option<&meshlib::Vector3i >, initialBox:Option<&meshlib::Box3f >) |
| void | set_ref_grid_point_position (coordOfPointInGrid:&meshlib::Vector3i, newPos:&meshlib::Vector3f) |
| auto | get_ref_grid_point_position (coordOfPointInGrid:&meshlib::Vector3i) const -> &meshlib::Vector3f |
| void | apply () const |
| auto | apply_single_point (point:&meshlib::Vector3f) const -> meshlib::Vector3f |
| auto | get_index (coordOfPointInGrid:&meshlib::Vector3i) const -> core::ffi::c_int |
| auto | get_coord (index:core::ffi::c_int) const -> meshlib::Vector3i |
| auto | get_all_ref_grid_positions () const -> &meshlib::std_vector_MR_Vector3f |
| void | set_all_ref_grid_positions (refPoints:&meshlib::std_vector_MR_Vector3f) |
| auto | get_resolution () const -> &meshlib::Vector3i |
Static Public Member Functions | |
| static auto | construct_from_another (_other:&meshlib::FreeFormDeformer) -> meshlib::Owned< meshlib::FreeFormDeformer > |
| static auto | construct_mr_vert_coords (coords:&mut meshlib::VertCoords, valid:&meshlib::VertBitSet) -> meshlib::Owned< meshlib::FreeFormDeformer > |
| static auto | construct_mr_mesh (mesh:&mut meshlib::Mesh, region:Option<&meshlib::VertBitSet >) -> meshlib::Owned< meshlib::FreeFormDeformer > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Class for deforming mesh using Bernstein interpolation.
Generated from class MR::FreeFormDeformer.
Generated from class MR::FreeFormDeformer. Heap-allocated instances are held in Owned<FreeFormDeformer>.
| void meshlib::FreeFormDeformer::apply | ( | ) | const |
Apply updated grid to all mesh points in parallel ensure updating render object after using it Generated from method MR::FreeFormDeformer::apply.
Calls MR_FreeFormDeformer_apply().
| auto meshlib::FreeFormDeformer::apply_single_point | ( | point:&meshlib::Vector3f | ) | const -> meshlib::Vector3f |
Apply updated grid to given point Generated from method MR::FreeFormDeformer::applySinglePoint.
Calls MR_FreeFormDeformer_applySinglePoint().
|
static |
Generated from constructor MR::FreeFormDeformer::FreeFormDeformer.
Calls MR_FreeFormDeformer_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
|
static |
Generated from constructor MR::FreeFormDeformer::FreeFormDeformer.
Calls MR_FreeFormDeformer_Construct_MR_Mesh(). The reference to the parameter mesh might be preserved in the constructed object. The reference to the parameter region might be preserved in the constructed object.
|
static |
Only set mesh ref Generated from constructor MR::FreeFormDeformer::FreeFormDeformer.
Calls MR_FreeFormDeformer_Construct_MR_VertCoords(). The reference to the parameter coords might be preserved in the constructed object. The reference to the parameter valid might be preserved in the constructed object.
| auto meshlib::FreeFormDeformer::get_all_ref_grid_positions | ( | ) | const -> &meshlib::std_vector_MR_Vector3f |
Generated from method MR::FreeFormDeformer::getAllRefGridPositions.
Calls MR_FreeFormDeformer_getAllRefGridPositions().
| auto meshlib::FreeFormDeformer::get_coord | ( | index:core::ffi::c_int | ) | const -> meshlib::Vector3i |
Get grid coord by index Generated from method MR::FreeFormDeformer::getCoord.
Calls MR_FreeFormDeformer_getCoord().
| auto meshlib::FreeFormDeformer::get_index | ( | coordOfPointInGrid:&meshlib::Vector3i | ) | const -> core::ffi::c_int |
Get one dimension index by grid coord Generated from method MR::FreeFormDeformer::getIndex.
Calls MR_FreeFormDeformer_getIndex().
| auto meshlib::FreeFormDeformer::get_ref_grid_point_position | ( | coordOfPointInGrid:&meshlib::Vector3i | ) | const -> &meshlib::Vector3f |
Gets ref grid point position Generated from method MR::FreeFormDeformer::getRefGridPointPosition.
Calls MR_FreeFormDeformer_getRefGridPointPosition().
| auto meshlib::FreeFormDeformer::get_resolution | ( | ) | const -> &meshlib::Vector3i |
Generated from method MR::FreeFormDeformer::getResolution.
Calls MR_FreeFormDeformer_getResolution().
| void meshlib::FreeFormDeformer::init | ( | resolution:Option<&meshlib::Vector3i > | , |
| initialBox:Option<&meshlib::Box3f > | ) |
Calculates all points' normalized positions in parallel sets ref grid by initialBox, if initialBox is invalid uses mesh bounding box instead Generated from method MR::FreeFormDeformer::init.
Calls MR_FreeFormDeformer_init().
| void meshlib::FreeFormDeformer::set_all_ref_grid_positions | ( | refPoints:&meshlib::std_vector_MR_Vector3f | ) |
Generated from method MR::FreeFormDeformer::setAllRefGridPositions.
Calls MR_FreeFormDeformer_setAllRefGridPositions().
| void meshlib::FreeFormDeformer::set_ref_grid_point_position | ( | coordOfPointInGrid:&meshlib::Vector3i | , |
| newPos:&meshlib::Vector3f | ) |
Updates ref grid point position Generated from method MR::FreeFormDeformer::setRefGridPointPosition.
Calls MR_FreeFormDeformer_setRefGridPointPosition().