mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Removed chained_path_points()
This commit is contained in:
@@ -2,7 +2,7 @@ package Slic3r::Print::Object;
|
||||
use Moo;
|
||||
|
||||
use List::Util qw(min max sum first);
|
||||
use Slic3r::Geometry qw(X Y Z PI scale unscale deg2rad rad2deg scaled_epsilon chained_path_points);
|
||||
use Slic3r::Geometry qw(X Y Z PI scale unscale deg2rad rad2deg scaled_epsilon chained_path);
|
||||
use Slic3r::Geometry::Clipper qw(diff diff_ex intersection intersection_ex union union_ex
|
||||
offset offset_ex offset2 offset2_ex CLIPPER_OFFSET_SCALE JT_MITER);
|
||||
use Slic3r::Surface ':types';
|
||||
@@ -85,7 +85,7 @@ sub _trigger_copies {
|
||||
return unless @{$self->copies} > 1;
|
||||
|
||||
# order copies with a nearest neighbor search
|
||||
@{$self->copies} = @{chained_path_points($self->copies)}
|
||||
@{$self->copies} = @{$self->copies}[@{chained_path($self->copies)}];
|
||||
}
|
||||
|
||||
sub init_config {
|
||||
|
||||
Reference in New Issue
Block a user