mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Bugfix: medial axis code threw fatal errors sometimes
This commit is contained in:
@@ -201,6 +201,7 @@ sub medial_axis {
|
|||||||
$pointmap{$_->[A]} >= 2 && $pointmap{$_->[B]} >= 2
|
$pointmap{$_->[A]} >= 2 && $pointmap{$_->[B]} >= 2
|
||||||
} @skeleton_lines;
|
} @skeleton_lines;
|
||||||
}
|
}
|
||||||
|
return undef if !@skeleton_lines;
|
||||||
|
|
||||||
# now build a single polyline
|
# now build a single polyline
|
||||||
my $polyline = [];
|
my $polyline = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user