31 #if defined(ShapeGeometricFunctors_RECURSES) 32 #error Recursive header files inclusion detected in ShapeGeometricFunctors.h 33 #else // defined(ShapeGeometricFunctors_RECURSES) 35 #define ShapeGeometricFunctors_RECURSES 37 #if !defined ShapeGeometricFunctors_h 39 #define ShapeGeometricFunctors_h 44 #include "DGtal/base/Common.h" 52 namespace ShapeGeometricFunctors
63 template <
typename TShape>
113 template <
typename TShape>
151 return ( norm != 0 ) ? v / norm : v;
168 template <
typename TShape>
204 return myShape->meanCurvature( p );
219 #include "DGtal/shapes/ShapeGeometricFunctors.ih" 224 #endif // !defined ShapeGeometricFunctors_h 226 #undef ShapeGeometricFunctors_RECURSES 227 #endif // else defined(ShapeGeometricFunctors_RECURSES) Shape::RealPoint RealPoint
Aim: A functor RealPoint -> Quantity that returns the position of the point itself.
RealVector::Component Scalar
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Quantity operator()(const RealPoint &p) const
ShapePositionFunctor(ConstAlias< Shape > aShape=0)
PointVector< 3, double > RealPoint
Shape::RealVector RealVector
Shape::RealPoint RealPoint
void attach(ConstAlias< Shape > aShape)
Aim: A functor RealPoint -> Quantity that returns the mean curvature at given point.
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.
CountedConstPtrOrConstPtr< Shape > myShape
The shape of interest.
Shape::RealPoint RealPoint
Shape::RealVector RealVector
Aim: A functor RealPoint -> Quantity that returns the normal vector at given point.
DGtal is the top-level namespace which contains all DGtal functions and types.
void attach(ConstAlias< Shape > aShape)
void attach(ConstAlias< Shape > aShape)
ShapeMeanCurvatureFunctor(ConstAlias< Shape > aShape=0)
Quantity operator()(const RealPoint &p) const
Quantity operator()(const RealPoint &p) const
ShapeNormalVectorFunctor(ConstAlias< Shape > aShape=0)
RealVector::Component Scalar
TEuclideanRing Component
Type for Vector elements.