Class ClusterPainter
Defined in File ClusterPainter.hpp
Class Documentation
-
class ClusterPainter
Algorithm that assignd the same color for all vertices in a cluster.
Public Functions
-
inline ClusterPainter(const ClusterBiMap<FaceHandle> &clusterBiMap)
-
template<typename BaseVecT>
DenseClusterMap<RGB8Color> colorize(const BaseMesh<BaseVecT> &mesh, ColorGradient::GradientType gradient = ColorGradient::GREY) const Assign a pseudo-color to each cluster.
The color is deterministically determined by the cluster id.
Protected Attributes
-
ClusterBiMap<FaceHandle> m_clusterBiMap
Map of cluster handles.
-
ColorGradient m_colorGradient
Color gradient to compute the cluster colors.
-
inline ClusterPainter(const ClusterBiMap<FaceHandle> &clusterBiMap)