Developer Documentation
Curvature.hh File Reference

Functions for calculating curvatures. More...

#include <vector>

Go to the source code of this file.

Functions

template<typename MeshT >
double curvature::gauss_curvature (MeshT &_mesh, const typename MeshT::VertexHandle &_vh)
 
template<class MeshT , class VectorT , class REALT >
void curvature::discrete_mean_curv_op (const MeshT &_m, const typename MeshT::VertexHandle &_vh, VectorT &_n, REALT &_area)
 

Detailed Description

Functions for calculating curvatures.

Definition in file Curvature.hh.

Function Documentation

template<class MeshT , class VectorT , class REALT >
void curvature::discrete_mean_curv_op ( const MeshT &  _m,
const typename MeshT::VertexHandle &  _vh,
VectorT _n,
REALT &  _area 
)

Mean Curvature Normal Operator warning: if mean curvature < 0 _n points to the inside warning: if mean curvature = 0 -> no normal information

Parameters
_nmean_curvature(vit)*n(vit)
_areaglobal vertex area

Definition at line 121 of file Curvature.cc.

template<typename MeshT >
double curvature::gauss_curvature ( MeshT &  _mesh,
const typename MeshT::VertexHandle &  _vh 
)

compute consistent discrete gaussian curvature (vertex is a small sphere patch, edges are small cylinders)

compute consistent dirscrete gaussian curvature (vertex is a small sphere patch, edges are small cylinders)

Definition at line 81 of file Curvature.cc.