mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Ported nearest_point() and nearest_point_index()
This commit is contained in:
parent
f1e9216c70
commit
b11b595c97
18 changed files with 79 additions and 69 deletions
|
@ -211,7 +211,7 @@ sub extrude_loop {
|
|||
}
|
||||
|
||||
# split the loop at the starting point and make a path
|
||||
my $start_at = Slic3r::Geometry::nearest_point($last_pos, \@candidates);
|
||||
my $start_at = $last_pos->nearest_point(\@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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue