MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::FreeFormBestFit Struct Reference
Inheritance diagram for meshlib::FreeFormBestFit:

Public Member Functions

auto assign_from_another (_other:&meshlib::FreeFormBestFit) -> &mut meshlib::FreeFormBestFit
void add_pair_mr_vector3d (src:&meshlib::Vector3d, tgt:&meshlib::Vector3d, w:Option< f64 >)
void add_pair_mr_vector3f (src:&meshlib::Vector3f, tgt:&meshlib::Vector3f, w:Option< f32 >)
void add_other (other:&meshlib::FreeFormBestFit)
void set_stabilizer (stabilizer:f64)
auto get_stabilizer () const -> f64
auto find_best_deformation_reference_grid () -> meshlib::Owned< meshlib::std_vector_MR_Vector3f >

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::FreeFormBestFit) -> meshlib::Owned< meshlib::FreeFormBestFit >
static auto construct (box:&meshlib::Box3d, resolution:Option<&meshlib::Vector3i >) -> meshlib::Owned< meshlib::FreeFormBestFit >
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

Detailed Description

Class to accumulate source and target points for free form alignment Calculates best Free Form transform to fit given source->target deformation origin ref grid as box corners ( resolution parameter specifies how to divide box ) Generated from class MR::FreeFormBestFit.

Generated from class MR::FreeFormBestFit. Heap-allocated instances are held in Owned<FreeFormBestFit>.

Member Function Documentation

◆ add_other()

void meshlib::FreeFormBestFit::add_other ( other:&meshlib::FreeFormBestFit )

adds other instance of FreeFormBestFit if it has same ref grid Generated from method MR::FreeFormBestFit::addOther.

Calls MR_FreeFormBestFit_addOther().

◆ add_pair_mr_vector3d()

void meshlib::FreeFormBestFit::add_pair_mr_vector3d ( src:&meshlib::Vector3d ,
tgt:&meshlib::Vector3d ,
w:Option< f64 >  )

add pair of source and target point to accumulator Generated from method MR::FreeFormBestFit::addPair.

Calls MR_FreeFormBestFit_addPair_MR_Vector3d().

◆ add_pair_mr_vector3f()

void meshlib::FreeFormBestFit::add_pair_mr_vector3f ( src:&meshlib::Vector3f ,
tgt:&meshlib::Vector3f ,
w:Option< f32 >  )

Generated from method MR::FreeFormBestFit::addPair.

Calls MR_FreeFormBestFit_addPair_MR_Vector3f().

◆ assign_from_another()

auto meshlib::FreeFormBestFit::assign_from_another ( _other:&meshlib::FreeFormBestFit ) -> &mut meshlib::FreeFormBestFit

Generated from method MR::FreeFormBestFit::operator=.

Calls MR_FreeFormBestFit_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct()

auto meshlib::FreeFormBestFit::construct ( box:&meshlib::Box3d ,
resolution:Option<&meshlib::Vector3i >  ) -> meshlib::Owned< meshlib::FreeFormBestFit >
static

initialize the class, compute cached values and reserve space for matrices Generated from constructor MR::FreeFormBestFit::FreeFormBestFit.

Calls MR_FreeFormBestFit_Construct(). The reference to the parameter box might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::FreeFormBestFit::construct_from_another ( _other:&meshlib::FreeFormBestFit ) -> meshlib::Owned< meshlib::FreeFormBestFit >
static

Generated from constructor MR::FreeFormBestFit::FreeFormBestFit.

Calls MR_FreeFormBestFit_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ find_best_deformation_reference_grid()

auto meshlib::FreeFormBestFit::find_best_deformation_reference_grid ( ) -> meshlib::Owned< meshlib::std_vector_MR_Vector3f >

finds best grid points positions to align source points to target points Generated from method MR::FreeFormBestFit::findBestDeformationReferenceGrid.

Calls MR_FreeFormBestFit_findBestDeformationReferenceGrid().

◆ get_stabilizer()

auto meshlib::FreeFormBestFit::get_stabilizer ( ) const -> f64

Generated from method MR::FreeFormBestFit::getStabilizer.

Calls MR_FreeFormBestFit_getStabilizer().

◆ set_stabilizer()

void meshlib::FreeFormBestFit::set_stabilizer ( stabilizer:f64 )

stabilizer adds additional weights to keep result grid closer to origins recommended values (0;1], but it can be higher Generated from method MR::FreeFormBestFit::setStabilizer.

Calls MR_FreeFormBestFit_setStabilizer().


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