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

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.
 

Detailed Description

Options for remove_short_edges function.

Member Data Documentation

◆ vertex_importance_attribute_name

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)

◆ max_normal_deviation_angle

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.


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