15#include <lagrange/SurfaceMesh.h>
80template <
typename Scalar,
typename Index>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
SharpnessResults compute_sharpness(SurfaceMesh< Scalar, Index > &mesh, const SharpnessOptions &options={})
Compute subdivision options to handle sharp edges and vertices based on existing mesh attributes.
Definition compute_sharpness.cpp:27
Subdivision surfaces.
Definition compute_sharpness.h:19
Input options for the compute_sharpness function.
Definition compute_sharpness.h:43
std::string_view normal_attribute_name
If provided, name of the normal attribute to use as indexed normals to define sharp edges.
Definition compute_sharpness.h:48
std::optional< double > feature_angle_threshold
Feature angle threshold (in radians) to detect sharp edges when computing autosmooth normals.
Definition compute_sharpness.h:53
Attribute ids returned by the compute_sharpness function.
Definition compute_sharpness.h:28
std::optional< AttributeId > edge_sharpness_attr
Attribute id to use for edge sharpness in the subdivide_mesh function (has float type).
Definition compute_sharpness.h:36
std::optional< AttributeId > vertex_sharpness_attr
Attribute id to use for vertex sharpness in the subdivide_mesh function (has float type).
Definition compute_sharpness.h:33
std::optional< AttributeId > normal_attr
Attribute id of the indexed normal attribute used to compute sharpness information.
Definition compute_sharpness.h:30