Visual Computing Library
Loading...
Searching...
No Matches
vcl::comp::HasPrincipalCurvature Concept Reference

HasPrincipalCurvature concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::PrincipalCurvature component of a given element. More...

#include <vclib/concepts/mesh/components/principal_curvature.h>

Concept definition

template<typename T>
concept vcl::comp::HasPrincipalCurvature = requires (T&& obj) {
typename RemoveRef<T>::PrincipalCurvatureType;
{ obj.principalCurvature() } -> PrincipalCurvatureConcept;
}
Concept for types representing principal curvature directions and values at a point on a 3D surface.
Definition principal_curvature.h:39
HasPrincipalCurvature concept is satisfied only if a Element class provides the types and member func...
Definition principal_curvature.h:48

Detailed Description

HasPrincipalCurvature concept is satisfied only if a Element class provides the types and member functions specified in this concept. These types and member functions allow to access to a vcl::comp::PrincipalCurvature component of a given element.

Note that this concept does not discriminate between the Horizontal PrincipalCurvature component and the vertical OptionalPrincipalCurvature component, therefore it does not guarantee that a template Element type that satisfies this concept provides PrincipalCurvature component at runtime (it is guaranteed only that the proper member functions are available at compile time).