|
static void | VertexConstant (MeshType &m, VertexQualityType q) |
|
static void | VertexValence (UpdateMeshType &m) |
|
static void | VertexClamp (MeshType &m, VertexQualityType qmin, VertexQualityType qmax) |
|
static void | VertexNormalize (MeshType &m, VertexQualityType qmin=0.0, VertexQualityType qmax=1.0) |
|
static void | FaceNormalize (MeshType &m, FaceQualityType qmin=0.0, FaceQualityType qmax=1.0) |
|
static void | FaceConstant (MeshType &m, FaceQualityType q) |
|
static void | FaceArea (MeshType &m) |
|
static void | VertexFromShapeIndexCurvatureDir (MeshType &m) |
| VertexFromShapeIndexCurvatureDir Compute from the current Curvature Direction the Shape Index S as defined by [Koenderink 1992] and store it in the per-vertex Quality. S = 2/pi atan(k1+k2/k1-k2)
|
|
static void | VertexFromCurvednessCurvatureDir (MeshType &m) |
| VertexFromCurvednessCurvatureDir Compute from the current Curvature Direction the Curvedness as defined by [Koenderink 1992] and store it in the per-vertex Quality. C = Sqrt((k1*k1+k2*k2)/2.0)
|
|
static void | VertexSaturate (MeshType &m, ScalarType gradientThr=1.0) |
| Saturate Vertex Quality Saturate the vertex quality so that for each vertex the gradient of the quality field is lower than the given threshold value (in absolute value) The saturation is done in a conservative way (quality is always decreased and never increased)
|
|
template<class UpdateMeshType>
class vcg::tri::UpdateQuality< UpdateMeshType >
Generation of per-vertex and per-face qualities.
It works according to various strategy, like geodesic distance from the border (UpdateQuality::VertexGeodesicFromBorder) or curvature ecc. This class is templated over the mesh and (like all other Update* classes) has only static members; Typical usage:
MyMeshType m;
UpdateQuality<MyMeshType>::VertexGeodesicFromBorder(m);
Definition at line 44 of file quality.h.
template<class UpdateMeshType >
VertexFromCurvednessCurvatureDir Compute from the current Curvature Direction the Curvedness as defined by [Koenderink 1992] and store it in the per-vertex Quality. C = Sqrt((k1*k1+k2*k2)/2.0)
J. Koenderink and A. van Doorn. Surface shape and curvature scales. Image and vision computing, 10(8):557–565, 1992.
Definition at line 334 of file quality.h.
template<class UpdateMeshType >
VertexFromShapeIndexCurvatureDir Compute from the current Curvature Direction the Shape Index S as defined by [Koenderink 1992] and store it in the per-vertex Quality. S = 2/pi atan(k1+k2/k1-k2)
J. Koenderink and A. van Doorn. Surface shape and curvature scales. Image and vision computing, 10(8):557–565, 1992.
Definition at line 312 of file quality.h.
template<class UpdateMeshType >
static void vcg::tri::UpdateQuality< UpdateMeshType >::VertexSaturate |
( |
MeshType & |
m, |
|
|
ScalarType |
gradientThr = 1.0 |
|
) |
| |
|
inlinestatic |
Saturate Vertex Quality Saturate the vertex quality so that for each vertex the gradient of the quality field is lower than the given threshold value (in absolute value) The saturation is done in a conservative way (quality is always decreased and never increased)
Note: requires VF adjacency.
Definition at line 474 of file quality.h.