14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/compute_vertex_normal.h>
18#include <lagrange/NormalWeightingType.h>
19#include <lagrange/SurfaceMesh.h>
72template <
typename Scalar,
typename Index>
uint32_t AttributeId
Identified to be used to access an attribute.
Definition: AttributeFwd.h:73
AttributeId compute_vertex_normal(SurfaceMesh< Scalar, Index > &mesh, VertexNormalOptions options={})
Compute per-vertex normals based on specified weighting type.
Definition: compute_vertex_normal.cpp:33
NormalWeightingType
Weighting types for averaging corner normals around a vertex.
Definition: NormalWeightingType.h:27
@ Angle
Incident face normals are averaged weighted by incident angle of vertex.
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Option struct for computing per-vertex mesh normals.
Definition: compute_vertex_normal.h:37
bool keep_weighted_corner_normals
Whether to keep any newly added weighted corner normal attribute.
Definition: compute_vertex_normal.h:56
std::string_view weighted_corner_normal_attribute_name
Precomputed weighted corner attribute name.
Definition: compute_vertex_normal.h:47
std::string_view output_attribute_name
Output normal attribute name.
Definition: compute_vertex_normal.h:39
bool recompute_weighted_corner_normals
Whether to recompute the weighted corner normal attribute, or reuse existing cached values if present...
Definition: compute_vertex_normal.h:51
NormalWeightingType weight_type
Per-vertex normal averaging weighting type.
Definition: compute_vertex_normal.h:42