mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:05:53 +08:00
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…
x
Reference in New Issue
Block a user