VCG Library  0.1
Static Public Member Functions
vcg::tri::UpdateQuality< UpdateMeshType > Class Template Reference

Generation of per-vertex and per-face qualities. More...

#include <vcg/complex/trimesh/update/quality.h>

List of all members.

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)

Detailed Description

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:


Member Function Documentation

template<class UpdateMeshType >
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.

template<class UpdateMeshType >
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.

template<class UpdateMeshType >
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.

template<class UpdateMeshType >
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.

Warning:
VF topology, Per Vertex Quality and border flags already computed (see UpdateFlags::FaceBorderFromVF and UpdateTopology::VertexFace);

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

Generated on Mon Sep 27 08:13:16 2004 for VCG Library by doxygen 1.3.7