mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Safer safety_offset() for ExPolygons
This commit is contained in:
1 parent
4cb36fcbe2
commit
4c41f6c462
3 files changed
+7
-15
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user