A fake concave hull that is constructed by connecting separate shapes with explicit bridges. Bridges are generated from each shape's centroid to the center of the "scene" which is the centroid calculated from the shape centroids (a star is created...). More...
#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/ConcaveHull.hpp>
Public Member Functions | |
| ConcaveHull (const ExPolygons &polys, double merge_dist, ThrowOnCancel thr) | |
| ConcaveHull (const Polygons &polys, double mergedist, ThrowOnCancel thr) | |
| const Polygons & | polygons () const |
| ExPolygons | to_expolygons () const |
Private Member Functions | |
| Points | calculate_centroids () const |
| void | merge_polygons () |
| void | add_connector_rectangles (const Points ¢roids, coord_t max_dist, ThrowOnCancel thr) |
Static Private Member Functions | |
| static Point | centroid (const Points &pp) |
| static Point | centroid (const Polygon &poly) |
Private Attributes | |
| Polygons | m_polys |
A fake concave hull that is constructed by connecting separate shapes with explicit bridges. Bridges are generated from each shape's centroid to the center of the "scene" which is the centroid calculated from the shape centroids (a star is created...).
|
inline |
References ConcaveHull(), and Slic3r::to_polygons().
Referenced by ConcaveHull().
| Slic3r::sla::ConcaveHull::ConcaveHull | ( | const Polygons & | polys, |
| double | mergedist, | ||
| ThrowOnCancel | thr ) |
References add_connector_rectangles(), calculate_centroids(), m_polys, merge_polygons(), and Slic3r::scaled().
|
private |
References centroid(), Slic3r::Geometry::dist(), Slic3r::sla::PointIndex::insert(), Slic3r::Line::length(), m_polys, Slic3r::sla::PointIndex::nearest(), Slic3r::offset(), Slic3r::MultiPoint::points, Slic3r::scaled(), Slic3r::sla::to_vec2(), and Slic3r::sla::to_vec3().
Referenced by ConcaveHull().
|
private |
References m_polys.
Referenced by ConcaveHull().
References MAX.
Referenced by add_connector_rectangles().
|
private |
References Slic3r::sla::get_contours(), m_polys, and Slic3r::union_ex().
Referenced by ConcaveHull().
|
inline |
References m_polys.
Referenced by Slic3r::sla::offset_waffle_style().
| ExPolygons Slic3r::sla::ConcaveHull::to_expolygons | ( | ) | const |
References m_polys, and Slic3r::reserve_vector().
|
private |
Referenced by ConcaveHull(), add_connector_rectangles(), calculate_centroids(), merge_polygons(), polygons(), and to_expolygons().