mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Rename shortest_path to chained_path, which reflects its algorithm more correctly
This commit is contained in:
@@ -93,7 +93,7 @@ sub fill_surface {
|
||||
)};
|
||||
|
||||
return { flow_spacing => $params{flow_spacing} },
|
||||
Slic3r::Polyline::Collection->new(polylines => \@paths)->shortest_path;
|
||||
Slic3r::Polyline::Collection->new(polylines => \@paths)->chained_path;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -73,7 +73,7 @@ sub fill_surface {
|
||||
}
|
||||
: sub { abs($_[X] - $distance_between_lines) <= $tolerance && $_[Y] <= $diagonal_distance };
|
||||
|
||||
foreach my $path ($collection->shortest_path) {
|
||||
foreach my $path ($collection->chained_path) {
|
||||
if (@paths) {
|
||||
my @distance = map abs($path->[0][$_] - $paths[-1][-1][$_]), (X,Y);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user