Bugfix: some holes being closed incorrectly. #858

This commit is contained in:
Alessandro Ranellucci 2012-12-30 17:57:30 +01:00
parent 6e6bc74636
commit 141a8d3989
3 changed files with 29 additions and 6 deletions

View file

@ -14,7 +14,7 @@ our $clipper = Math::Clipper->new;
sub safety_offset {
my ($polygons, $factor) = @_;
return Math::Clipper::offset($polygons, $factor || (scale 1e-05), 100000, JT_MITER, 2);
return Math::Clipper::offset($polygons, $factor // (scale 1e-05), 100000, JT_MITER, 2);
}
sub offset {