This commit is contained in:
Alessandro Ranellucci 2012-06-07 15:31:51 +02:00
parent 00c6b1bdf8
commit c0c53c4397
2 changed files with 24 additions and 8 deletions

View file

@ -213,7 +213,7 @@ sub medial_axis {
$pointmap{$_->[A]} >= 2 && $pointmap{$_->[B]} >= 2
} @skeleton_lines;
}
return undef if !@skeleton_lines;
return () if !@skeleton_lines;
# now walk along the medial axis and build continuos polylines or polygons
my @polylines = ();