Bugfix: arc compensation code was filling some small holes

This commit is contained in:
Alessandro Ranellucci 2012-05-01 19:19:31 +02:00
parent d59d4a2c55
commit d164d13517

View file

@ -198,7 +198,10 @@ sub make_perimeters {
next unless $area <= $Slic3r::small_perimeter_area;
my $radius = sqrt($area / PI);
my $new_radius = (scale($Slic3r::flow_width) + sqrt((scale($Slic3r::flow_width)**2) + (4*($radius**2)))) / 2;
# holes are always turned to contours, so reverse point order before and after
$hole->reverse;
@$hole = map Slic3r::Point->new($_), @{ +($hole->offset(+ ($new_radius - $radius)))[0] };
$hole->reverse;
}
# create other offsets