DGtal
1.5.beta
|
Aim: A helper class that provides static methods to compute normal cycle formulas of curvatures. More...
#include <DGtal/geometry/meshes/NormalCycleFormula.h>
Public Types | |
typedef TRealPoint | RealPoint |
typedef TRealVector | RealVector |
typedef RealVector::Component | Scalar |
typedef std::vector< RealPoint > | RealPoints |
typedef std::vector< RealVector > | RealVectors |
typedef SimpleMatrix< Scalar, 3, 3 > | RealTensor |
typedef std::size_t | Size |
typedef std::size_t | Index |
Static Public Member Functions | |
Formulas for curvature | |
static Scalar | area (const RealPoints &pts) |
static Scalar | twiceMeanCurvature (const RealPoint &a, const RealPoint &b, const RealVector &right, const RealVector &left) |
static Scalar | gaussianCurvature (const RealPoint &a, const RealPoints &vtcs) |
static Scalar | gaussianCurvatureWithPairs (const RealPoint &a, const RealPoints &pairs) |
static RealTensor | anisotropicCurvatureH1 (const RealPoint &a, const RealPoint &b, const RealVector &right, const RealVector &left) |
static RealTensor | anisotropicCurvatureH2 (const RealPoint &a, const RealPoint &b, const RealVector &right, const RealVector &left) |
Other geometric services | |
static RealPoint | barycenter (const RealPoints &pts) |
static RealVector | normal (const RealPoint &a, const RealPoint &b, const RealPoint &c) |
static Scalar | area (const RealPoint &a, const RealPoint &b, const RealPoint &c) |
static RealVector | averageUnitVector (const RealVectors &vecs) |
Static Public Attributes | |
static const Dimension | dimension = RealPoint::dimension |
Aim: A helper class that provides static methods to compute normal cycle formulas of curvatures.
Description of class 'NormalCycleFormula'
TRealPoint | any model of 3D RealPoint. |
TRealVector | any model of 3D RealVector. |
Definition at line 64 of file NormalCycleFormula.h.
typedef std::size_t DGtal::NormalCycleFormula< TRealPoint, TRealVector >::Index |
Definition at line 73 of file NormalCycleFormula.h.
typedef TRealPoint DGtal::NormalCycleFormula< TRealPoint, TRealVector >::RealPoint |
Definition at line 66 of file NormalCycleFormula.h.
typedef std::vector< RealPoint > DGtal::NormalCycleFormula< TRealPoint, TRealVector >::RealPoints |
Definition at line 69 of file NormalCycleFormula.h.
typedef SimpleMatrix< Scalar, 3, 3 > DGtal::NormalCycleFormula< TRealPoint, TRealVector >::RealTensor |
Definition at line 71 of file NormalCycleFormula.h.
typedef TRealVector DGtal::NormalCycleFormula< TRealPoint, TRealVector >::RealVector |
Definition at line 67 of file NormalCycleFormula.h.
typedef std::vector< RealVector > DGtal::NormalCycleFormula< TRealPoint, TRealVector >::RealVectors |
Definition at line 70 of file NormalCycleFormula.h.
typedef RealVector::Component DGtal::NormalCycleFormula< TRealPoint, TRealVector >::Scalar |
Definition at line 68 of file NormalCycleFormula.h.
typedef std::size_t DGtal::NormalCycleFormula< TRealPoint, TRealVector >::Size |
Definition at line 72 of file NormalCycleFormula.h.
|
inlinestatic |
Computes the anisotropic measure \( \bar{H} \) at edge ab.
a | any point |
b | any point |
right | the normal vector at face xba where x is some vertex(ices) |
left | the normal vector at face yab where y is some vertex(ices) |
Definition at line 159 of file NormalCycleFormula.h.
References max().
|
inlinestatic |
Computes the anisotropic measure \( \bar{\tilde{H}} \) at edge ab.
a | any point |
b | any point |
right | the normal vector at face xba where x is some vertex(ices) |
left | the normal vector at face yab where y is some vertex(ices) |
Definition at line 192 of file NormalCycleFormula.h.
References max().
|
inlinestatic |
Computes triangle area
a | any point |
b | any point |
c | any point |
Definition at line 245 of file NormalCycleFormula.h.
References DGtal::crossProduct().
|
inlinestatic |
Computes area of polygonal face pts.
pts | the (ccw ordered) points forming the vertices of a polygonal face. |
Definition at line 85 of file NormalCycleFormula.h.
References DGtal::NormalCycleFormula< TRealPoint, TRealVector >::barycenter().
|
inlinestatic |
Given a vector of unit vectors, returns their average unit vector.
vecs | any vector of vectors. |
Definition at line 254 of file NormalCycleFormula.h.
|
inlinestatic |
Given a vector of points, returns its barycenter.
pts | any vector of points |
Definition at line 219 of file NormalCycleFormula.h.
Referenced by DGtal::NormalCycleFormula< TRealPoint, TRealVector >::area().
|
inlinestatic |
Computes the Gaussian curvature at point a with incident vertices vtcs.
a | any point |
vtcs | a range of points |
Definition at line 124 of file NormalCycleFormula.h.
|
inlinestatic |
Computes the Gaussian curvature at point a with incident pairs of points pairs.
a | any point |
pairs | a range of points [x_0, y_0, x_1, y_1, etc] such that (a,x_i,y_i) is an incident face to a. |
Definition at line 142 of file NormalCycleFormula.h.
|
inlinestatic |
Computes a unit normal vector to triangle abc
a | any point |
b | any point |
c | any point |
Definition at line 234 of file NormalCycleFormula.h.
References DGtal::crossProduct().
|
inlinestatic |
Computes twice the mean curvature on edge ab given normal vectors right, left.
a | any point |
b | any point |
right | the normal vector at face xba where x is some vertex(ices) |
left | the normal vector at face yab where y is some vertex(ices) |
Definition at line 106 of file NormalCycleFormula.h.
|
static |
Definition at line 74 of file NormalCycleFormula.h.