From 39b8ac80ee3402c8633ae86adf50d62e4bf0dc5f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 29 May 2014 14:54:47 +0200 Subject: [PATCH] Ignore holes in object footprint when generating raft --- lib/Slic3r/Print/SupportMaterial.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index 4db50c4a..fa941ad9 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -121,7 +121,8 @@ sub contact_area { if ($layer_id == 0) { # this is the first object layer, so we're here just to get the object # footprint for the raft - push @overhang, map $_->clone, map @$_, @{$layer->slices}; + # we only consider contours and discard holes to get a more continuous raft + push @overhang, map $_->clone, map $_->contour, @{$layer->slices}; push @contact, @{offset(\@overhang, scale +MARGIN)}; } else { my $lower_layer = $object->layers->[$layer_id-1];