CortidQCT  1.2.2.52
Public Types | Public Member Functions | List of all members
CortidQCT::Internal::WeightedARAPFitter< T > Class Template Reference

This class implements a weighted as-rigid-as-possible mesh fitting algorithm that uses a point-to-plane metric. More...

#include <WeightedARAPFitter.h>

Public Types

using Scalar = T
 

Public Member Functions

 WeightedARAPFitter (Mesh< T > const &referenceMesh, T sigma)
 Constructs an object that can be used to fit the given reference mesh. More...
 
template<class DerivedV , class DerivedF >
 WeightedARAPFitter (Eigen::MatrixBase< DerivedV > const &V, Eigen::MatrixBase< DerivedF > const &F, T sigma)
 Constructs an object that can be used to fit the given reference mesh. More...
 
VertexMatrix< Scalar > fit (VertexMatrix< Scalar > const &Y, VertexMatrix< Scalar > const &N, Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > const &gamma)
 Fits the reference mesh to the given target vertices by minimizing the wiehgted point-to-plane distances under ARAP constraints. More...
 

Detailed Description

template<class T>
class CortidQCT::Internal::WeightedARAPFitter< T >

This class implements a weighted as-rigid-as-possible mesh fitting algorithm that uses a point-to-plane metric.

Template Parameters
TScalar type of the vertices

Constructor & Destructor Documentation

template<class T>
CortidQCT::Internal::WeightedARAPFitter< T >::WeightedARAPFitter ( Mesh< T > const &  referenceMesh,
sigma 
)

Constructs an object that can be used to fit the given reference mesh.

Parameters
referenceMeshThe reference mesh
template<class T>
template<class DerivedV , class DerivedF >
CortidQCT::Internal::WeightedARAPFitter< T >::WeightedARAPFitter ( Eigen::MatrixBase< DerivedV > const &  V,
Eigen::MatrixBase< DerivedF > const &  F,
sigma 
)
inline

Constructs an object that can be used to fit the given reference mesh.

Parameters
VThe vertex matrix of the reference mesh (Nx3)
FThe facet matrix of the reference mesh (Mx3)

Member Function Documentation

template<class T >
VertexMatrix< T > CortidQCT::Internal::WeightedARAPFitter< T >::fit ( VertexMatrix< Scalar > const &  Y,
VertexMatrix< Scalar > const &  N,
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > const &  gamma 
)

Fits the reference mesh to the given target vertices by minimizing the wiehgted point-to-plane distances under ARAP constraints.

Parameters
YTarget vertex matrix (Nx3)
NTarget per-vertex normal matrix (Nx3)
gammaWeight vector (Nx1)
Returns
VertexMatrix (Nx3) representing the linear embedding of the deformed mesh

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