Allow 0.1mm slots. #959 #1056

This commit is contained in:
Alessandro Ranellucci 2013-04-04 01:24:40 +02:00
parent b4be61b703
commit 7e51cbcf69

View File

@ -139,7 +139,7 @@ sub _merge_loops {
# winding order.
# TODO: find a faster algorithm for this.
my @loops = sort { $a->encloses_point($b->[0]) ? 0 : 1 } @$loops; # outer first
$safety_offset //= scale 0.1;
$safety_offset //= scale 0.0499;
@loops = @{ safety_offset(\@loops, $safety_offset) };
my $expolygons = [];
while (my $loop = shift @loops) {