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>2013-07-07 14:57:26 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-07 14:57:26 +0400
commit3a046e34111aeaf3701062f006e9f5957635e15b (patch)
tree383666e9556ae90ddccc87a1c6227efd02582637
parentd06ac3e31e416054a03f4dd84a035f7e1080d33a (diff)
Optimization: simplify fill_surfaces before the offset operation
-rw-r--r--lib/Slic3r/Layer/Region.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm
index 6d1d4745e..6aa634041 100644
--- a/lib/Slic3r/Layer/Region.pm
+++ b/lib/Slic3r/Layer/Region.pm
@@ -209,12 +209,11 @@ sub make_perimeters {
# and then we offset back and forth by the infill spacing to only consider the
# non-collapsing regions
push @{ $self->fill_surfaces },
- map $_->simplify(&Slic3r::SCALED_RESOLUTION),
- offset2_ex(
- \@last,
- -($perimeter_spacing/2 + $infill_spacing),
- +$infill_spacing,
- );
+ offset2_ex(
+ [ map $_->simplify(&Slic3r::SCALED_RESOLUTION), @last ],
+ -($perimeter_spacing/2 + $infill_spacing),
+ +$infill_spacing,
+ );
}
$self->_fill_gaps(\@gaps);