Template Function lvr2::clusterGrowing
Defined in File ClusterAlgorithms.hpp
Function Documentation
-
template<typename BaseVecT, typename Pred>
ClusterBiMap<FaceHandle> lvr2::clusterGrowing(const BaseMesh<BaseVecT> &mesh, Pred pred) Algorithm which generates clusters from the given mesh. The given predicate decides which faces will be in the same clusters.
- Template Parameters:
Pred – a predicate which decides, which faces will be in the same cluster. It gets the following parameters: (FaceHandle referenceFaceH, FaceHandle currentFaceH) and returs a bool. The referenceFaceH is the first FaceHandle, which was added to the current cluster. currentFaceH is the current FaceHandle for which the predicate has to decide, whether it should be added to the current cluster or not. The decision is done by returing true = add currentFaceH to cluster or false = don’t add currentFaceH to cluster.