Safer safety_offset() for ExPolygons

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

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 {