Use latest Math::Clipper updated to Clipper 4.4.4 to get sharp corners
This commit is contained in:
parent
f48dec9e41
commit
5fec13353c
@ -160,7 +160,7 @@ sub make_fill {
|
|||||||
|
|
||||||
# save into layer
|
# save into layer
|
||||||
FINISH: push @{ $layer->fills }, map Slic3r::ExtrusionPath->cast([ @$_ ]), @paths;
|
FINISH: push @{ $layer->fills }, map Slic3r::ExtrusionPath->cast([ @$_ ]), @paths;
|
||||||
}#exit if $layer->id == 1;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# this function will select the first contiguous block of
|
# this function will select the first contiguous block of
|
||||||
|
@ -125,10 +125,7 @@ sub offset_polygon {
|
|||||||
my ($contour_p, @holes_p) = ($polygon->{outer}, @{$polygon->{holes}});
|
my ($contour_p, @holes_p) = ($polygon->{outer}, @{$polygon->{holes}});
|
||||||
|
|
||||||
# generate offsets
|
# generate offsets
|
||||||
my $offsets = offset([ $contour_p, @holes_p ], -$distance, 1);
|
my $offsets = offset([ $contour_p, @holes_p ], -$distance, 100, JT_MITER, 2);
|
||||||
|
|
||||||
# fix order of holes
|
|
||||||
@$offsets = map [ reverse @$_ ], @$offsets;
|
|
||||||
|
|
||||||
# defensive programming
|
# defensive programming
|
||||||
my (@contour_offsets, @hole_offsets) = ();
|
my (@contour_offsets, @hole_offsets) = ();
|
||||||
|
Loading…
Reference in New Issue
Block a user