14#include <lagrange/SurfaceMesh.h>
55template <
typename Scalar,
typename Index>
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:152
Main namespace for Lagrange.
Definition: AABBIGL.h:30
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