14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/compute_dihedral_angles.h>
18#include <lagrange/SurfaceMesh.h>
68template <
typename Scalar,
typename Index>
uint32_t AttributeId
Identified to be used to access an attribute.
Definition: AttributeFwd.h:73
AttributeId compute_dihedral_angles(SurfaceMesh< Scalar, Index > &mesh, const DihedralAngleOptions &options={})
Computes dihedral angles for each edge in the mesh.
Definition: compute_dihedral_angles.cpp:32
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Option struct for computing dihedral angles.
Definition: compute_dihedral_angles.h:34
bool keep_facet_normals
Whether to keep any newly added facet normal attribute.
Definition: compute_dihedral_angles.h:47
std::string_view facet_normal_attribute_name
Precomputed facet normal attribute name.
Definition: compute_dihedral_angles.h:40
bool recompute_facet_normals
Whether to recompute the facet normal attribute, or reuse existing cached values if present.
Definition: compute_dihedral_angles.h:43
std::string_view output_attribute_name
Output attribute name. If the attribute already exists, it will be overwritten.
Definition: compute_dihedral_angles.h:36