Fix regression causing thin walls to come out as zigzag paths. #1573 #1575

This commit is contained in:
Alessandro Ranellucci 2013-12-23 20:36:16 +01:00
parent 20f1f3d2b4
commit cacbaa7319
2 changed files with 4 additions and 2 deletions

View File

@ -203,6 +203,9 @@ sub _medial_axis_voronoi {
}
}
# apply Douglas-Peucker to straighten paths
@result = map $_->simplify($width / 7), @result;
return @result;
}

View File

@ -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 = ();