From df62c25c8f54f8ca88104d930984bdb29af3c594 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 11 May 2013 09:39:38 +0200 Subject: [PATCH] One more offset_ex() optimization --- lib/Slic3r/Layer/Region.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index aef139252..d8ab156db 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -258,12 +258,11 @@ sub make_perimeters { # non-collapsing regions push @{ $self->fill_surfaces }, map $_->simplify(&Slic3r::SCALED_RESOLUTION), - @{union_ex([ - Slic3r::Geometry::Clipper::offset( - [Slic3r::Geometry::Clipper::offset([ map @$_, @last_offsets ], -($perimeter_spacing/2 + $infill_spacing))], + offset2_ex( + [ map @$_, @last_offsets ], + -($perimeter_spacing/2 + $infill_spacing), +$infill_spacing, - ), - ])}; + ); } # fill gaps