Fix starting point after overhang clipping is performed
This commit is contained in:
parent
b3b2a1e891
commit
339c487077
1 changed files with 3 additions and 2 deletions
|
@ -181,7 +181,8 @@ sub extrude_loop {
|
||||||
}
|
}
|
||||||
|
|
||||||
# split the loop at the starting point and make a path
|
# split the loop at the starting point and make a path
|
||||||
my $extrusion_path = $loop->split_at(Slic3r::Geometry::nearest_point($last_pos, \@candidates));
|
my $start_at = Slic3r::Geometry::nearest_point($last_pos, \@candidates);
|
||||||
|
my $extrusion_path = $loop->split_at($start_at);
|
||||||
|
|
||||||
# clip the path to avoid the extruder to get exactly on the first point of the loop;
|
# clip the path to avoid the extruder to get exactly on the first point of the loop;
|
||||||
# if polyline was shorter than the clipping distance we'd get a null polyline, so
|
# if polyline was shorter than the clipping distance we'd get a null polyline, so
|
||||||
|
@ -204,7 +205,7 @@ sub extrude_loop {
|
||||||
# reapply the nearest point search for starting point
|
# reapply the nearest point search for starting point
|
||||||
@paths = Slic3r::ExtrusionPath::Collection
|
@paths = Slic3r::ExtrusionPath::Collection
|
||||||
->new(paths => [@paths])
|
->new(paths => [@paths])
|
||||||
->chained_path($last_pos, 1);
|
->chained_path($start_at, 1);
|
||||||
} else {
|
} else {
|
||||||
push @paths, $extrusion_path;
|
push @paths, $extrusion_path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue