OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Clustering.hpp File Reference
#include <functional>
#include <Eigen/Core>
#include <algorithm>
#include <array>
#include <cstddef>
#include <vector>
#include <libslic3r/SLA/SpatIndex.hpp>
Include dependency graph for Clustering.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::sla

Typedefs

using Slic3r::sla::ClusterEl = std::vector<unsigned>
using Slic3r::sla::ClusteredPoints = std::vector<ClusterEl>

Functions

ClusteredPoints Slic3r::sla::cluster (const std::vector< unsigned > &indices, std::function< Vec3d(unsigned)> pointfn, double dist, unsigned max_points)
ClusteredPoints Slic3r::sla::cluster (const Eigen::MatrixXd &pts, double dist, unsigned max_points)
ClusteredPoints Slic3r::sla::cluster (const std::vector< unsigned > &indices, std::function< Vec3d(unsigned)> pointfn, std::function< bool(const PointIndexEl &, const PointIndexEl &)> predicate, unsigned max_points)
template<class DistFn, class PointFn>
long Slic3r::sla::cluster_centroid (const ClusterEl &clust, PointFn pointfn, DistFn df)