14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/mesh_cleanup/legacy/split_long_edges.h>
18#include <lagrange/SurfaceMesh.h>
51template <
typename Scalar,
typename Index>
Main namespace for Lagrange.
Definition: AABBIGL.h:30
void split_long_edges(SurfaceMesh< Scalar, Index > &mesh, SplitLongEdgesOptions options={})
Split edges that are longer than options.max_edge_length.
Definition: split_long_edges.cpp:66
Definition: split_long_edges.h:26
float max_edge_length
Maximum edge length. Edges longer than this value will be split.
Definition: split_long_edges.h:28
bool recursive
If true, the operation will be applied recursively until no edge is longer than max_edge_length.
Definition: split_long_edges.h:32
std::string_view edge_length_attribute
The edge length attribute name that will be used to determine the edge length.
Definition: split_long_edges.h:42
std::string_view active_region_attribute
The facet attribute name that will be used to determine the active region.
Definition: split_long_edges.h:38