MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::FreeFormBestFit Class Reference

#include <MRMesh/MRFreeFormDeformer.h>

Public Member Functions

 FreeFormBestFit (const Box3d &box, const Vector3i &resolution=Vector3i::diagonal(2))
 initialize the class, compute cached values and reserve space for matrices
void addPair (const Vector3d &src, const Vector3d &tgt, double w=1.0)
 add pair of source and target point to accumulator
void addPair (const Vector3f &src, const Vector3f &tgt, float w=1.0f)
void addOther (const FreeFormBestFit &other)
 adds other instance of FreeFormBestFit if it has same ref grid
void setStabilizer (double stabilizer)
double getStabilizer () const
std::vector< Vector3f > findBestDeformationReferenceGrid ()
 finds best grid points positions to align source points to target points

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 )


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