Raise the miter limit to avoid squaring corners too easily. #801
This commit is contained in:
parent
cd892fdce8
commit
fc399d60e2
@ -21,7 +21,7 @@ sub offset {
|
|||||||
my ($polygons, $distance, $scale, $joinType, $miterLimit) = @_;
|
my ($polygons, $distance, $scale, $joinType, $miterLimit) = @_;
|
||||||
$scale ||= 100000;
|
$scale ||= 100000;
|
||||||
$joinType //= JT_MITER;
|
$joinType //= JT_MITER;
|
||||||
$miterLimit //= 2;
|
$miterLimit //= 10;
|
||||||
|
|
||||||
my $offsets = Math::Clipper::offset($polygons, $distance, $scale, $joinType, $miterLimit);
|
my $offsets = Math::Clipper::offset($polygons, $distance, $scale, $joinType, $miterLimit);
|
||||||
return @$offsets;
|
return @$offsets;
|
||||||
|
Loading…
Reference in New Issue
Block a user