mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-14 03:02:52 +02:00
Ported nearest_point() and nearest_point_index()
This commit is contained in:
1 parent
f1e9216c70
commit
b11b595c97
18 files changed
+79
-69
No files matched your search
@@ -23,7 +23,7 @@ sub chained_path {
|
||||
while (@my_paths) {
|
||||
# find nearest point
|
||||
my $start_index = defined $start_near
|
||||
? Slic3r::Geometry::nearest_point_index($start_near, $endpoints)
|
||||
? $start_near->nearest_point_index($endpoints)
|
||||
: 0;
|
||||
|
||||
my $path_index = int($start_index/2);
|
||||
|
||||
Reference in new issue
Block a user