Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-11-14 00:46:32 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-11-14 00:46:32 +0400
commit8f32ee8f5a39262ebb96c80e34b82f3399163f3a (patch)
tree7b12e3bb6d4ec1aefde2911f2519a9900eb40e2e /lib/Slic3r/Geometry
parentba1b59f54c7c7777ec8b28014d038dba38edab8f (diff)
Bugfix: recent changes broke the "Infill every N layers" feature
Diffstat (limited to 'lib/Slic3r/Geometry')
-rw-r--r--lib/Slic3r/Geometry/Clipper.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Slic3r/Geometry/Clipper.pm b/lib/Slic3r/Geometry/Clipper.pm
index aeacab661..3652d35ee 100644
--- a/lib/Slic3r/Geometry/Clipper.pm
+++ b/lib/Slic3r/Geometry/Clipper.pm
@@ -31,11 +31,14 @@ sub diff_ex {
$clipper->clear;
$clipper->add_subject_polygons($subject);
$clipper->add_clip_polygons($clip);
- return $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO);
+ return [
+ map Slic3r::ExPolygon->new($_),
+ @{ $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO) },
+ ];
}
sub diff {
- return [ map { $_->{outer}, $_->{holes} } diff_ex(@_) ];
+ return [ map @$_, diff_ex(@_) ];
}
sub union_ex {