$darkmode
VCG Library
Public Types | Public Member Functions | List of all members
vcg::tri::IsotropicDistance< MeshType > Class Template Reference

Public Types

typedef MeshType::VertexType VertexType
 
typedef MeshType::ScalarType ScalarType
 
typedef MeshType::FacePointer FacePointer
 

Public Member Functions

 IsotropicDistance (MeshType &m, float variance)
 
ScalarType operator() (VertexType *v0, VertexType *v1)
 

Constructor & Destructor Documentation

◆ IsotropicDistance()

template<class MeshType >
vcg::tri::IsotropicDistance< MeshType >::IsotropicDistance ( MeshType &  m,
float  variance 
)
inline

The constructor reads per vertex quality and transfer it into a per vertex attribute mapping it into the specified range. The variance parameter specify how the distance is biased by the quality the distance is scaled by a factor that range from 1/variance to variance according to a linear mapping of quality range. So for example if you have a quality distributed in the 0..1 range and you specify a variance of 2 it means that the distance will be scaled from 0.5 to 2 their original values.


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