1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-15 08:44:26 +00:00

Bugfix: Clipper error occurred under certain circumstances

This commit is contained in:
Alessandro Ranellucci
2011-12-01 19:40:45 +01:00
parent b03afc7f1c
commit 133f3a0495
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -55,8 +55,14 @@ sub offset {
sub safety_offset {
my $self = shift;
# we're offsetting contour and holes separately
# because Clipper doesn't return polygons in the same order as
# we feed them to it
return (ref $self)->new(
@{ Slic3r::Geometry::Clipper::safety_offset([@$self]) },
$self->contour->safety_offset,
@{ Slic3r::Geometry::Clipper::safety_offset([$self->holes]) },
);
}