From 9513fa7600615c925841003efa8fc1c095b42ebc Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 12 Aug 2013 18:55:11 +0200 Subject: [PATCH] Enforce some horizontal margin between object and interface/support (contact not affected) --- lib/Slic3r/Print/Object.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index a61166a49..29208af13 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -945,7 +945,10 @@ sub generate_support_material { # now find whether any projection falls onto this top surface my $touching = intersection($projection, [ map $_->p, @top ]); if (@$touching) { - $top{ $layer->print_z } = $touching; + # grow top surfaces so that interface and support generation are generated + # with some spacing from object - it looks we don't need the actual + # top shapes so this can be done here + $top{ $layer->print_z } = [ offset($touching, $flow->scaled_spacing) ]; } # remove the areas that touched from the projection that will continue on