Safer safety_offset() for ExPolygons

This commit is contained in:
Alessandro Ranellucci committed 2013-03-26 13:57:37 +01:00
1 parent 4cb36fcbe2
commit 4c41f6c462
3 files changed
+7 -15

No files matched your search

+1 -9
View File
@@ -85,15 +85,7 @@ sub offset_ex {
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(
$self->contour->safety_offset,
@{ Slic3r::Geometry::Clipper::safety_offset([$self->holes]) },
);
return Slic3r::Geometry::Clipper::safety_offset_ex($self, @_);
}
sub noncollapsing_offset_ex {