VCG Library
0.1
|
Generation of per-vertex and per-face qualities. More...
#include <vcg/complex/trimesh/update/quality.h>
Static Public Member Functions | |
static void | VertexGeodesicFromBorder (MeshType &m) |
Compute, for each vertex of the mesh the geodesic distance from the border of the mesh itself. | |
static void | VertexConstant (MeshType &m, float q) |
static void | VertexClamp (MeshType &m, float qmin, float qmax) |
static void | FaceConstant (MeshType &m, float q) |
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);
static void vcg::tri::UpdateQuality< UpdateMeshType >::FaceConstant | ( | MeshType & | m, |
float | q | ||
) | [inline, static] |
Assign to each face of the mesh a constant quality value. Useful for initialization.
static void vcg::tri::UpdateQuality< UpdateMeshType >::VertexClamp | ( | MeshType & | m, |
float | qmin, | ||
float | qmax | ||
) | [inline, static] |
Clamp each vertex of the mesh with a range of values.
static void vcg::tri::UpdateQuality< UpdateMeshType >::VertexConstant | ( | MeshType & | m, |
float | q | ||
) | [inline, static] |
Assign to each vertex of the mesh a constant quality value. Useful for initialization.
static void vcg::tri::UpdateQuality< UpdateMeshType >::VertexGeodesicFromBorder | ( | MeshType & | m | ) | [inline, static] |
Compute, for each vertex of the mesh the geodesic distance from the border of the mesh itself.
It uses the classical Dijkstra Shortest Path Tree algorithm. The geodesic distance is approximated by allowing to walk only along edges of the mesh.