From dc588e2db56a0a2377cb27885819bf7c43c4ceaf Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 21 Oct 2021 11:42:00 +0200 Subject: [PATCH] Pass previously set arc tolerance to concave hull --- src/libslic3r/SLA/ConcaveHull.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/SLA/ConcaveHull.cpp b/src/libslic3r/SLA/ConcaveHull.cpp index cfce36d162..08a2ff676a 100644 --- a/src/libslic3r/SLA/ConcaveHull.cpp +++ b/src/libslic3r/SLA/ConcaveHull.cpp @@ -133,7 +133,8 @@ ExPolygons offset_waffle_style_ex(const ConcaveHull &hull, coord_t delta) Polygons offset_waffle_style(const ConcaveHull &hull, coord_t delta) { - Polygons res = closing(hull.polygons(), 2 * delta, delta, ClipperLib::jtRound); + auto arc_tolerance = scaled(0.01); + Polygons res = closing(hull.polygons(), 2 * delta, delta, ClipperLib::jtRound, arc_tolerance); auto it = std::remove_if(res.begin(), res.end(), [](Polygon &p) { return p.is_clockwise(); }); res.erase(it, res.end());