Do not oversimplify outer perimeters and keep the full resolution of the input file. #340 #462

This commit is contained in:
Alessandro Ranellucci 2012-06-23 20:08:08 +02:00
parent 20229fccdb
commit 44c636aea1
3 changed files with 9 additions and 5 deletions

View file

@ -23,8 +23,8 @@ sub explode_expolygons {
}
sub safety_offset {
my ($polygons) = @_;
return Math::Clipper::offset($polygons, scale 1e-05, 100, JT_MITER, 2);
my ($polygons, $factor) = @_;
return Math::Clipper::offset($polygons, $factor || (scale 1e-05), 100, JT_MITER, 2);
}
sub diff_ex {