From b327314b0265cfa14a865a44224773e50168552c Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 29 Apr 2021 11:05:11 +0200 Subject: [PATCH] Layer::make_perimeters() - when merging regions, use OffsetEx instead of safety offset of UnionEx, which may not be robust. --- src/libslic3r/Layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Layer.cpp b/src/libslic3r/Layer.cpp index b974ff217..e86a67b6f 100644 --- a/src/libslic3r/Layer.cpp +++ b/src/libslic3r/Layer.cpp @@ -185,7 +185,7 @@ void Layer::make_perimeters() } // merge the surfaces assigned to each group for (std::pair &surfaces_with_extra_perimeters : slices) - new_slices.append(union_ex(surfaces_with_extra_perimeters.second, true), surfaces_with_extra_perimeters.second.front()); + new_slices.append(offset_ex(to_expolygons(surfaces_with_extra_perimeters.second), 10.f), surfaces_with_extra_perimeters.second.front()); } // make perimeters