Restored a little overlap between perimeters and infill (we're only explicitely overlapping in the direction of infill lines, because side overlap is handled by the flow logic in Extruder.pm)

This commit is contained in:
Alessandro Ranellucci 2011-12-15 20:21:34 +01:00
parent 2e013e72e8
commit 18cfc15ead

View File

@ -30,6 +30,7 @@ sub fill_surface {
$distance_between_lines += $extra_space / ($number_of_lines - 1) if $number_of_lines > 1;
$flow_width = unscale $distance_between_lines;
}
my $overlap_distance = $min_spacing * $Slic3r::overlap_factor;
my @paths = ();
my $x = $bounding_box->[X1];
@ -40,7 +41,12 @@ sub fill_surface {
$vertical_line->[A][X] -= $line_oscillation;
$vertical_line->[B][X] += $line_oscillation;
}
push @paths, @{ $expolygon->clip_line($vertical_line) };
my @clipped_lines = @{ $expolygon->clip_line($vertical_line) };
for (@clipped_lines) {
$_->[0][Y] += $overlap_distance;
$_->[-1][Y] -= $overlap_distance;
}
push @paths, @clipped_lines;
$x += $distance_between_lines;
}