14#include <lagrange/SurfaceMesh.h>
64template <
typename Scalar,
typename Index>
67 std::string_view name,
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
std::string get_unique_attribute_name(const SurfaceMesh< Scalar, Index > &mesh, std::string_view name, const UniqueAttributeNameOptions &options={})
Returns a unique attribute name by appending a suffix if necessary.
Definition get_unique_attribute_name.cpp:23
Main namespace for Lagrange.
Options for generating unique attribute names.
Definition get_unique_attribute_name.h:33
std::string separator
Separator between the base name and the counter. Default is ".".
Definition get_unique_attribute_name.h:35
bool emit_warning
Whether to emit a warning when a collision is detected and a suffix is added.
Definition get_unique_attribute_name.h:45
std::string postfix
Postfix to append after the counter. Default is empty.
Definition get_unique_attribute_name.h:38
int max_increment
Maximum number of attempts to find a unique name. Default is 1000.
Definition get_unique_attribute_name.h:41