Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-10-21 12:42:00 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-10-21 13:22:15 +0300
commitdc588e2db56a0a2377cb27885819bf7c43c4ceaf (patch)
tree8e36040979accca796568ae4eac0f3aee372ea1b /src/libslic3r/SLA
parent3f1fc8329b4b63b8bad0d36976218423e32ab404 (diff)
Pass previously set arc tolerance to concave hull
Diffstat (limited to 'src/libslic3r/SLA')
-rw-r--r--src/libslic3r/SLA/ConcaveHull.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libslic3r/SLA/ConcaveHull.cpp b/src/libslic3r/SLA/ConcaveHull.cpp
index cfce36d16..08a2ff676 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<double>(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());