#ifndef SLA_CLUSTERING_HPP #define SLA_CLUSTERING_HPP #include #include #include namespace Slic3r { namespace sla { using ClusterEl = std::vector; using ClusteredPoints = std::vector; // Clustering a set of points by the given distance. ClusteredPoints cluster(const std::vector& indices, std::function pointfn, double dist, unsigned max_points); ClusteredPoints cluster(const PointSet& points, double dist, unsigned max_points); ClusteredPoints cluster( const std::vector& indices, std::function pointfn, std::function predicate, unsigned max_points); }} #endif // CLUSTERING_HPP