Fix bug in regression infill causing bad clipping at very low layer heights. Includes regression test. #1669

Conflicts:

	lib/Slic3r/Fill/Rectilinear.pm
This commit is contained in:
Alessandro Ranellucci 2014-01-11 21:34:26 +01:00
parent 3084876e60
commit c99b9d91db
2 changed files with 31 additions and 7 deletions

View file

@ -60,12 +60,12 @@ sub fill_surface {
$x += $line_spacing;
}
# clip paths against a slightly offsetted expolygon, so that the first and last paths
# clip paths against a slightly larger expolygon, so that the first and last paths
# are kept even if the expolygon has vertical sides
# the minimum offset for preventing edge lines from being clipped is scaled_epsilon;
# however we use a larger offset to support expolygons with slightly skewed sides and
# not perfectly straight
my @polylines = @{intersection_pl(\@vertical_lines, $expolygon->offset($line_spacing*0.05))};
my @polylines = @{intersection_pl(\@vertical_lines, $expolygon->offset(scale 0.02))};
# connect lines
unless ($params{dont_connect} || !@polylines) { # prevent calling leftmost_point() on empty collections