mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Safer safety_offset() for ExPolygons
This commit is contained in:
parent
4cb36fcbe2
commit
4c41f6c462
3 changed files with 7 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue