Use latest Math::Clipper updated to Clipper 4.4.4 to get sharp corners

degen-loop-screen
Alessandro Ranellucci 2011-09-25 20:09:30 +02:00
parent f48dec9e41
commit 5fec13353c
2 changed files with 2 additions and 5 deletions

View File

@ -160,7 +160,7 @@ sub make_fill {
# save into layer
FINISH: push @{ $layer->fills }, map Slic3r::ExtrusionPath->cast([ @$_ ]), @paths;
}#exit if $layer->id == 1;
}
}
# this function will select the first contiguous block of

View File

@ -125,10 +125,7 @@ sub offset_polygon {
my ($contour_p, @holes_p) = ($polygon->{outer}, @{$polygon->{holes}});
# generate offsets
my $offsets = offset([ $contour_p, @holes_p ], -$distance, 1);
# fix order of holes
@$offsets = map [ reverse @$_ ], @$offsets;
my $offsets = offset([ $contour_p, @holes_p ], -$distance, 100, JT_MITER, 2);
# defensive programming
my (@contour_offsets, @hole_offsets) = ();