From 00c6287488fa9b46315cf8b973047b066c06e62b Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 21 Jan 2012 17:11:14 +0100 Subject: [PATCH] Bugfix: fill escapes perimeters. #139 --- lib/Slic3r/Fill/Rectilinear.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Fill/Rectilinear.pm b/lib/Slic3r/Fill/Rectilinear.pm index 212c63adb..d264abb1a 100644 --- a/lib/Slic3r/Fill/Rectilinear.pm +++ b/lib/Slic3r/Fill/Rectilinear.pm @@ -61,7 +61,7 @@ sub fill_surface { my $can_connect = $is_line_pattern ? sub { $_[X] <= (abs((($_[2][Y] - $bounding_box->[Y1])*(2 * $line_oscillation)/($bounding_box->[Y2] - $bounding_box->[Y1])) - $line_oscillation) + $distance_between_lines) && $_[Y] <= $distance_between_lines * 5 } - : sub { ($_[X] <= $distance_between_lines + epsilon) && ($_[Y] <= $distance_between_lines * 5) }; + : sub { ($_[X] >= $distance_between_lines - epsilon) && ($_[X] <= $distance_between_lines + epsilon) && ($_[Y] <= $distance_between_lines * 5) }; foreach my $path ($collection->shortest_path) { if (@paths) {