14#include <lagrange/SurfaceMesh.h>
55template <
typename Scalar,
typename Index>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
AttributeElement
Type of element to which the attribute is attached.
Definition AttributeFwd.h:26
@ Facet
Per-facet mesh attributes.
Definition AttributeFwd.h:31
AttributeId compute_greedy_coloring(SurfaceMesh< Scalar, Index > &mesh, const GreedyColoringOptions &options={})
Compute a greedy graph coloring of the mesh.
Definition compute_greedy_coloring.cpp:153
Main namespace for Lagrange.
Option struct for computing dihedral angles.
Definition compute_greedy_coloring.h:30
size_t num_color_used
Minimum number of colors to use. The algorithm will cycle through them but may use more.
Definition compute_greedy_coloring.h:38
std::string_view output_attribute_name
Output attribute name. If the attribute already exists, it will be overwritten.
Definition compute_greedy_coloring.h:32
AttributeElement element_type
Element type to be colored. Can be either Vertex or Facet.
Definition compute_greedy_coloring.h:35