|
Lagrange
|
Options for remove_short_edges function. More...
#include <lagrange/mesh_cleanup/remove_short_edges.h>
Public Attributes | |
| double | threshold = 0 |
| Edge length threshold for removal. Edges with length <= threshold will be removed. | |
| std::string_view | vertex_importance_attribute_name = "" |
| Optional: User-defined per-vertex importance attribute name. | |
| double | max_normal_deviation_angle = lagrange::internal::pi / 2 |
| Maximum normal deviation (in radians) allowed for 1-ring facets of the removed vertex after an edge collapse. | |
Options for remove_short_edges function.
| std::string_view vertex_importance_attribute_name = "" |
Optional: User-defined per-vertex importance attribute name.
If provided (non-empty) and exists, this attribute will be used to determine which vertex to keep during edge collapse. Higher values = more important. If empty or does not exist, importance will be computed from geometry (dihedral angles, boundary status) and stored with a temporary name. Type: Scalar (float or double)
| double max_normal_deviation_angle = lagrange::internal::pi / 2 |
Maximum normal deviation (in radians) allowed for 1-ring facets of the removed vertex after an edge collapse.
A collapse is skipped if any surrounding facet's normal would rotate by more than this angle. The default (pi/2) only rejects actual normal flips; tighten this value (e.g. pi/6) for stricter geometric quality.