mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Bugfix: Clipper error occurred under certain circumstances
This commit is contained in:
parent
b03afc7f1c
commit
133f3a0495
2 changed files with 10 additions and 4 deletions
|
@ -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]) },
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue