mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-12-06 02:46:33 +01:00
Ported Slic3r::Polyline::Collection
This commit is contained in:
1 parent
fb82de9aaf
commit
1cfdf7e955
12 files changed
+194
-46
No files matched your search
@@ -96,9 +96,9 @@ sub fill_surface {
|
||||
|
||||
# connect paths
|
||||
{
|
||||
my $collection = Slic3r::Polyline::Collection->new(polylines => [@paths]);
|
||||
my $collection = Slic3r::Polyline::Collection->new(@paths);
|
||||
@paths = ();
|
||||
foreach my $path ($collection->chained_path) {
|
||||
foreach my $path (@{$collection->chained_path(0)}) {
|
||||
if (@paths) {
|
||||
# distance between first point of this path and last point of last path
|
||||
my $distance = $paths[-1]->last_point->distance_to($path->first_point);
|
||||
|
||||
Reference in new issue
Block a user