From 9da03dfc9f1abfdae43569e9b7b2dc372fcfb28c Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 29 Aug 2023 15:57:25 +0200 Subject: [PATCH] Fixed wrong Miter limit when offsetting contours to build a Z-graph of layer islands. Partial fix of SPE-1729 #10632 --- src/libslic3r/Layer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Layer.cpp b/src/libslic3r/Layer.cpp index 9d658841ce..2412bf9d48 100644 --- a/src/libslic3r/Layer.cpp +++ b/src/libslic3r/Layer.cpp @@ -81,7 +81,8 @@ void Layer::make_slices() // Top / bottom surfaces must overlap more than 2um to be chained into a Z graph. // Also a larger offset will likely be more robust on non-manifold input polygons. static constexpr const float delta = scaled(0.001); - co.MiterLimit = scaled(3.); + // Don't scale the miter limit, it is a factor, not an absolute length! + co.MiterLimit = 3.; // Use the default zero edge merging distance. For this kind of safety offset the accuracy of normal direction is not important. // co.ShortestEdgeLength = delta * ClipperOffsetShortestEdgeFactor; // static constexpr const double accept_area_threshold_ccw = sqr(scaled(0.1 * delta));