Bugfix: fatal error on some models. #255

This commit is contained in:
Alessandro Ranellucci 2012-03-10 23:49:24 +01:00
parent 0e1d89376e
commit 64892c2203

View file

@ -16,6 +16,7 @@ sub fill_surface {
$self->rotate_points($expolygon, $rotate_vector);
my ($expolygon_off) = $expolygon->offset_ex(scale 0.2);
return {} if !$expolygon_off; # skip some very small polygons (which shouldn't arrive here)
my $bounding_box = [ $expolygon_off->bounding_box ];
my $min_spacing = scale $params{flow_spacing};