Fix the max width supplied to medial axis code: it's up to two extrusions

This commit is contained in:
Alessandro Ranellucci 2014-03-05 00:53:51 +01:00
parent 4a894b1e20
commit c2ed6090d3
2 changed files with 4 additions and 6 deletions

View file

@ -224,7 +224,8 @@ sub make_perimeters {
# process thin walls by collapsing slices to single passes
if (@thin_walls) {
my @p = map @{$_->medial_axis($pspacing)}, @thin_walls;
# the maximum thickness of our thin wall area is equal to the minimum thickness of a single loop
my @p = map @{$_->medial_axis($pwidth + $pspacing)}, @thin_walls;
if (0) {
require "Slic3r/SVG.pm";