From 965a4e1bfd6eb2033602f791504ef949e0b20c26 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 3 Apr 2012 14:11:12 +0200 Subject: [PATCH] Make sure all concentric fill loops are extruded ccw. #298 --- lib/Slic3r/Fill/Concentric.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/Fill/Concentric.pm b/lib/Slic3r/Fill/Concentric.pm index 5152062aa..a5e4e1b38 100644 --- a/lib/Slic3r/Fill/Concentric.pm +++ b/lib/Slic3r/Fill/Concentric.pm @@ -52,6 +52,9 @@ sub fill_surface { ($bounding_box->[Y1] + $bounding_box->[Y2]) / 2, ); foreach my $loop (map Slic3r::ExtrusionLoop->new(polygon => $_, role => 'fill'), @loops) { + # extrude all loops ccw + $loop->polygon->make_counter_clockwise; + # find the point of the loop that is closest to the current extruder position $cur_pos = $loop->nearest_point_to($cur_pos);