mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Make sure all concentric fill loops are extruded ccw. #298
This commit is contained in:
@@ -52,6 +52,9 @@ sub fill_surface {
|
|||||||
($bounding_box->[Y1] + $bounding_box->[Y2]) / 2,
|
($bounding_box->[Y1] + $bounding_box->[Y2]) / 2,
|
||||||
);
|
);
|
||||||
foreach my $loop (map Slic3r::ExtrusionLoop->new(polygon => $_, role => 'fill'), @loops) {
|
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
|
# find the point of the loop that is closest to the current extruder position
|
||||||
$cur_pos = $loop->nearest_point_to($cur_pos);
|
$cur_pos = $loop->nearest_point_to($cur_pos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user