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

◆ discrete_mean_curv_op()

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 115 of file CurvatureT_impl.hh.

◆ gauss_curvature()

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

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

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

Definition at line 75 of file CurvatureT_impl.hh.