Visual Computing Library
devel
|
The PrincipalCurvature class represents a component that stores the principal curvature directions and values at a point on a surface. This component could be part of Vertices or Faces. More...
#include <vclib/mesh/components/principal_curvature.h>
Public Types | |
using | PrincipalCurvatureType = vcl::PrincipalCurvature< Scalar > |
Expose the type of the principal curvature object. | |
Public Member Functions | |
PrincipalCurvatureType & | principalCurvature () |
Returns a reference of the principal curvature of the element. | |
const PrincipalCurvatureType & | principalCurvature () const |
Returns a const reference of the principal curvature of the element. | |
PrincipalCurvature ()=default | |
Initilizes the PrincipalCurvature values to 0. | |
Protected Member Functions | |
void | deserialize (std::istream &is) |
template<typename Element > | |
void | importFrom (const Element &e, bool=true) |
void | serialize (std::ostream &os) const |
Private Types | |
using | Base = Component< PrincipalCurvature< Scalar, ParentElemType, OPT >, CompId::PRINCIPAL_CURVATURE, vcl::PrincipalCurvature< Scalar >, ParentElemType, !std::is_same_v< ParentElemType, void >, OPT > |
The PrincipalCurvature class represents a component that stores the principal curvature directions and values at a point on a surface. This component could be part of Vertices or Faces.
It exposes a vcl::PrincipalCurvature object, that stores the two principal curvature directions (maxDir()
and minDir()
, also note as k1 and k2 respectively) and the maximum and minimum values of the curvature (maxValue()
and minValue()
).
For example, if you have a Vertex Element v
with the PrincipalCurvature component, you'll be able to access to this component member functions from v
:
Scalar | The scalar type of the principal curvature values. |
ParentElemType | This template argument must be void if the component needs to be stored horizontally, or the type of the parent element that will contain this component if the component needs to be stored vertically. |
OPT | If true, the component will be optional. This argument is considered only if the component is stored vertically. |
|
inline |
Returns a reference of the principal curvature of the element.
|
inline |
Returns a const reference of the principal curvature of the element.