diff --git a/lib/Slic3r/ExPolygon.pm b/lib/Slic3r/ExPolygon.pm index 536ea3f94..10853dc27 100644 --- a/lib/Slic3r/ExPolygon.pm +++ b/lib/Slic3r/ExPolygon.pm @@ -203,6 +203,9 @@ sub _medial_axis_voronoi { } } + # apply Douglas-Peucker to straighten paths + @result = map $_->simplify($width / 7), @result; + return @result; } diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index 387de20dd..f63c82890 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -297,8 +297,7 @@ sub make_perimeters { # append perimeters $self->perimeters->append(@loops); - # detect thin walls by offsetting slices by half extrusion inwards - # and add them as perimeters + # process thin walls by collapsing slices to single passes if (@thin_walls) { my @p = map $_->medial_axis($pspacing), @thin_walls; my @paths = ();