VCG Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
vcg::tri::CoM< MeshType >::QualityDistanceFieldFunctor Struct Reference

QualityDistanceFieldFunctor quality field based smoothing functor. More...

#include <curve_on_manifold.h>

Public Member Functions

 QualityDistanceFieldFunctor (CoM< MeshType > &_com, ScalarType _scale=0, ScalarType _smoothBlend=0.5)
 
std::vector< CoordType > operator() (const MeshType &poly) const
 

Public Attributes

CoM< MeshType > & com
 
ScalarType scale
 
ScalarType smoothBlend = 0.5
 

Detailed Description

template<class MeshType>
struct vcg::tri::CoM< MeshType >::QualityDistanceFieldFunctor

QualityDistanceFieldFunctor quality field based smoothing functor.

Parameters
polythe input curve mesh
comthe CurveOnManifold class itself to quick access closest face
scalea scaling factor to control the step size of the movement along the quality, if 0 it will be automatically set to 1/2 of the CoM parameter par.maxMoveDelta (default is 0)
smoothBlenda blending factor to control the influence of the smoothing (default is 0.5)

It compute the new position using the quality field of the mesh assuming that it is a distance field sampled per vertices and that we would like to move toward the zero of the distance field. We use gradient of the quality field for the direction and the sign of the quality for the versus of the direction. We move of a quantity proportional to the quality value at the vertex.


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