VCG Library  0.1
Public Types | Static Public Member Functions
vcg::tri::UpdateCurvature< MeshType > Class Template Reference

Management, updating and computation of per-vertex and per-face normals. More...

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

List of all members.

Public Types

typedef vcg::GridStaticPtr
< FaceType, ScalarType > 
MeshGridType

Static Public Member Functions

static void PrincipalDirections (MeshType &m)
 Compute principal direction and magniuto of curvature.
static void MeanAndGaussian (MeshType &m)
 Computes the discrete gaussian curvature.
static float VertexCurvature (VertexPointer v, bool norm=true)
 Update the mean and the gaussian curvature of a vertex.

Detailed Description

template<class MeshType>
class vcg::tri::UpdateCurvature< MeshType >

Management, updating and computation of per-vertex and per-face normals.

This class is used to compute or update the normals that can be stored in the vertex or face component of a mesh.


Member Typedef Documentation

template<class MeshType >
typedef vcg::GridStaticPtr<FaceType, ScalarType > vcg::tri::UpdateCurvature< MeshType >::MeshGridType

Curvature meseaure as described in the paper: Robust principal curvatures on Multiple Scales, Yong-Liang Yang, Yu-Kun Lai, Shi-Min Hu Helmut Pottmann SGP 2004 If pointVSfaceInt==true the covariance is computed by montecarlo sampling on the mesh (faster) If pointVSfaceInt==false the covariance is computed by (analytic)integration over the surface (slower)


Member Function Documentation

template<class MeshType >
static void vcg::tri::UpdateCurvature< MeshType >::MeanAndGaussian ( MeshType &  m) [inline, static]

Computes the discrete gaussian curvature.

For further details, please, refer to:

  • Discrete Differential-Geometry Operators for Triangulated 2-Manifolds Mark Meyer, Mathieu Desbrun, Peter Schroder, Alan H. Barr VisMath '02, Berlin
template<class MeshType >
static void vcg::tri::UpdateCurvature< MeshType >::PrincipalDirections ( MeshType &  m) [inline, static]

Compute principal direction and magniuto of curvature.

template<class MeshType >
static float vcg::tri::UpdateCurvature< MeshType >::VertexCurvature ( VertexPointer  v,
bool  norm = true 
) [inline, static]

Update the mean and the gaussian curvature of a vertex.

The function uses the VF adiacency to walk around the vertex.

Returns:
It will return the voronoi area around the vertex. If (norm == true) the mean and the gaussian curvature are normalized. Based on the paper "Optimizing 3d triangulations using discrete curvature analysis"

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