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

Options for the split_obtuse_triangles function. More...

#include <lagrange/mesh_cleanup/split_obtuse_triangles.h>

Public Attributes

float max_angle = static_cast<float>(lagrange::internal::pi_2)
 Maximum allowed interior angle in radians.
 
size_t max_iterations = 5
 Maximum number of split passes.
 
std::string_view active_region_attribute = ""
 Optional facet attribute (uint8_t) restricting which facets are considered obtuse candidates.
 

Detailed Description

Options for the split_obtuse_triangles function.

Member Data Documentation

◆ max_angle

float max_angle = static_cast<float>(lagrange::internal::pi_2)

Maximum allowed interior angle in radians.

Triangles with any interior angle strictly greater than this threshold will be split. Default is pi/2, so any triangle with an angle larger than 90 degrees is considered obtuse.

◆ max_iterations

size_t max_iterations = 5

Maximum number of split passes.

Each pass projects the obtuse vertex onto the opposite edge and splits both incident triangles. Use 0 to iterate until convergence.

◆ active_region_attribute

std::string_view active_region_attribute = ""

Optional facet attribute (uint8_t) restricting which facets are considered obtuse candidates.

If empty, every facet is checked.


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