Go to the documentation of this file.
35 #ifndef LVR2_ALGORITHM_CLUSTERPAINTER_H_
36 #define LVR2_ALGORITHM_CLUSTERPAINTER_H_
65 template<
typename BaseVecT>
73 static_cast<uint8_t
>(fabs(cos(idx)) * 255),
74 static_cast<uint8_t
>(fabs(sin(idx * 30)) * 255),
75 static_cast<uint8_t
>(fabs(sin(idx * 2)) * 255)
82 #include "lvr2/algorithm/ClusterPainter.tcc"
Algorithm which generates the same color for all vertices, which are in the same cluster.
Rgb8Color getSimpsonColorForIdx(size_t idx) const
std::array< uint8_t, 3 > Rgb8Color
ClusterBiMap< FaceHandle > m_clusterBiMap
A map with constant lookup overhead using small-ish integer-keys.
ClusterPainter(const ClusterBiMap< FaceHandle > &clusterBiMap)
Interface for triangle-meshes with adjacency information.
DenseClusterMap< Rgb8Color > simpsons(const BaseMesh< BaseVecT > &mesh) const
Assign a pseudo-color to each cluster.
A map of clusters, which also saves a back-reference from handle to cluster.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23