Lagrange
Loading...
Searching...
No Matches
SharpnessOptions Struct Reference

Input options for the compute_sharpness function. More...

#include <lagrange/subdivision/compute_sharpness.h>

Public Attributes

std::string_view normal_attribute_name
 If provided, name of the normal attribute to use as indexed normals to define sharp edges.
 
std::optional< double > feature_angle_threshold
 Feature angle threshold (in radians) to detect sharp edges when computing autosmooth normals.
 

Detailed Description

Input options for the compute_sharpness function.

Member Data Documentation

◆ normal_attribute_name

std::string_view normal_attribute_name

If provided, name of the normal attribute to use as indexed normals to define sharp edges.

If not provided, the function will attempt to find an existing indexed normal attribute. If no such attribute is found, autosmooth normals will be computed based on the feature_angle_threshold parameter.

◆ feature_angle_threshold

std::optional<double> feature_angle_threshold

Feature angle threshold (in radians) to detect sharp edges when computing autosmooth normals.

By default, if no indexed normal attribute is found, no autosmooth normals will be computed.


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