Lagrange
NormalOptions Struct Reference

Option struct for computing indexed mesh normals. More...

#include <lagrange/compute_normal.h>

Public Attributes

std::string_view output_attribute_name = "@normal"
 Output normal attribute name.
 
NormalWeightingType weight_type = NormalWeightingType::Angle
 Per-vertex normal averaging weighting type.
 
std::string_view facet_normal_attribute_name = "@facet_normal"
 Precomputed facet normal attribute name. More...
 
bool recompute_facet_normals = false
 Whether to recompute the facet normal attribute, or reuse existing cached values if present.
 
bool keep_facet_normals = false
 Whether to keep any newly added facet normal attribute. More...
 

Detailed Description

Option struct for computing indexed mesh normals.

Member Data Documentation

◆ facet_normal_attribute_name

std::string_view facet_normal_attribute_name = "@facet_normal"

Precomputed facet normal attribute name.

Used to determine the orientation of accumulated corner normals. If the attribute does not exist, the algorithm will compute it.

◆ keep_facet_normals

bool keep_facet_normals = false

Whether to keep any newly added facet 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: