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
path: root/lib
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-05 16:21:20 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-05 16:21:20 +0400
commit27c421c27f2fb9bffc82446bbbd3fb809b8bed65 (patch)
treeb6d3dca3ec5f7c0e8ae1747065b7a1fe011faf14 /lib
parentb266d6217a02777ca0dc9f5c06cca312b5ca6bd5 (diff)
Slight optimization
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/Layer/Region.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm
index bab64317f..3c79fd324 100644
--- a/lib/Slic3r/Layer/Region.pm
+++ b/lib/Slic3r/Layer/Region.pm
@@ -5,7 +5,7 @@ use List::Util qw(sum first);
use Slic3r::ExtrusionPath ':roles';
use Slic3r::Geometry qw(PI A B scale chained_path_items points_coincide);
use Slic3r::Geometry::Clipper qw(safety_offset union_ex diff_ex intersection_ex
- offset offset2_ex PFT_EVENODD union_pt traverse_pt diff intersection);
+ offset offset2 offset2_ex PFT_EVENODD union_pt traverse_pt diff intersection);
use Slic3r::Surface ':types';
has 'layer' => (
@@ -98,12 +98,9 @@ sub make_surfaces {
# detect thin walls by offsetting slices by half extrusion inwards
{
my $width = $self->perimeter_flow->scaled_width;
- my $outgrown = [
- offset2_ex([ map @$_, map $_->expolygon, @{$self->slices} ], -$width, +$width),
- ];
my $diff = diff_ex(
[ map $_->p, @{$self->slices} ],
- [ map @$_, @$outgrown ],
+ [ offset2([ map @$_, map $_->expolygon, @{$self->slices} ], -$width, +$width) ],
1,
);