OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Clustering.cpp File Reference
#include "Clustering.hpp"
#include "boost/geometry/index/rtree.hpp"
#include <boost/geometry/index/parameters.hpp>
#include <functional>
#include <algorithm>
#include <iterator>
#include <boost/geometry/index/predicates.hpp>
#include <Eigen/Core>
#include <libslic3r/SLA/SpatIndex.hpp>
#include <libslic3r/SLA/BoostAdapter.hpp>
#include <vector>
#include <utility>
Include dependency graph for Clustering.cpp:

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
namespace  Slic3r::sla::anonymous_namespace{Clustering.cpp}

Typedefs

using Slic3r::sla::Index3D = bgi::rtree< PointIndexEl, bgi::rstar<16, 4> >

Functions

bool Slic3r::sla::anonymous_namespace{Clustering.cpp}::cmp_ptidx_elements (const PointIndexEl &e1, const PointIndexEl &e2)
ClusteredPoints Slic3r::sla::anonymous_namespace{Clustering.cpp}::cluster (Index3D &sindex, unsigned max_points, std::function< std::vector< PointIndexEl >(const Index3D &, const PointIndexEl &)> qfn)
std::vector< PointIndexEl > Slic3r::sla::anonymous_namespace{Clustering.cpp}::distance_queryfn (const Index3D &sindex, const PointIndexEl &p, double dist, unsigned max_points)
ClusteredPoints Slic3r::sla::cluster (const std::vector< unsigned > &indices, std::function< Vec3d(unsigned)> pointfn, 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)
ClusteredPoints Slic3r::sla::cluster (const Eigen::MatrixXd &pts, double dist, unsigned max_points)