Bugfix: medial axis code threw fatal errors sometimes
This commit is contained in:
parent
4b2bd7f779
commit
2def6a9787
1 changed files with 1 additions and 0 deletions
|
@ -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 = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue