14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/polyddg/DifferentialOperators.h>
16#include <lagrange/polyddg/api.h>
20namespace lagrange::polyddg {
77template <
typename Scalar,
typename Index>
93template <
typename Scalar,
typename Index>
96 PrincipalCurvaturesOptions options = {});
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
Polygonal mesh discrete differential operators.
Definition DifferentialOperators.h:38
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
constexpr AttributeId invalid_attribute_id()
Invalid attribute id.
Definition AttributeFwd.h:76
LA_POLYDDG_API PrincipalCurvaturesResult compute_principal_curvatures(SurfaceMesh< Scalar, Index > &mesh, const DifferentialOperators< Scalar, Index > &ops, PrincipalCurvaturesOptions options={})
Compute per-vertex principal curvatures and principal curvature directions.
Definition compute_principal_curvatures.cpp:35
Options for compute_principal_curvatures().
Definition compute_principal_curvatures.h:29
std::string_view kappa_max_attribute
Output attribute name for the maximum principal curvature (scalar, per vertex).
Definition compute_principal_curvatures.h:34
std::string_view kappa_min_attribute
Output attribute name for the minimum principal curvature (scalar, per vertex).
Definition compute_principal_curvatures.h:31
std::string_view direction_max_attribute
Output attribute name for the principal direction of kappa_max (3-D vector, per vertex).
Definition compute_principal_curvatures.h:40
std::string_view direction_min_attribute
Output attribute name for the principal direction of kappa_min (3-D vector, per vertex).
Definition compute_principal_curvatures.h:37
Result of compute_principal_curvatures().
Definition compute_principal_curvatures.h:47
AttributeId kappa_min_id
Attribute ID of the minimum principal curvature attribute.
Definition compute_principal_curvatures.h:49
AttributeId kappa_max_id
Attribute ID of the maximum principal curvature attribute.
Definition compute_principal_curvatures.h:52
AttributeId direction_min_id
Attribute ID of the principal direction for kappa_min.
Definition compute_principal_curvatures.h:55
AttributeId direction_max_id
Attribute ID of the principal direction for kappa_max.
Definition compute_principal_curvatures.h:58