Lagrange
VertexNormalOptions Struct Reference

Option struct for computing per-vertex mesh normals. More...

#include <lagrange/compute_vertex_normal.h>

Public Attributes

std::string_view output_attribute_name = "@vertex_normal"
 Output normal attribute name.
 
NormalWeightingType weight_type = NormalWeightingType::Angle
 Per-vertex normal averaging weighting type.
 
std::string_view weighted_corner_normal_attribute_name = "@weighted_corner_normal"
 Precomputed weighted corner attribute name. More...
 
bool recompute_weighted_corner_normals = false
 Whether to recompute the weighted corner normal attribute, or reuse existing cached values if present.
 
bool keep_weighted_corner_normals = false
 Whether to keep any newly added weighted corner normal attribute. More...
 

Detailed Description

Option struct for computing per-vertex mesh normals.

Member Data Documentation

◆ weighted_corner_normal_attribute_name

std::string_view weighted_corner_normal_attribute_name = "@weighted_corner_normal"

Precomputed weighted corner attribute name.

If the attribute does not exist, the algorithm will compute it. Note that if the input mesh has edge information, this intermediate attribute will not be computed (averaging will be performed directly in parallel).

◆ keep_weighted_corner_normals

bool keep_weighted_corner_normals = false

Whether to keep any newly added weighted corner normal attribute.

If such an attribute is already present in the input mesh, it will not be removed, even if this argument is set to false.


The documentation for this struct was generated from the following file: