From 8b48d79563d4a504e6d7ee0c8e4cc93eb8094190 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 15 Jun 2013 21:10:04 +0200 Subject: [PATCH] Improve zigzag gap fill. #1234 --- lib/Slic3r/Layer/Region.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index 472c2da52..a9dbc3bdc 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -315,8 +315,12 @@ sub _fill_gaps { 1, )}; + # medial axis-based gap fill should benefit from detection of larger gaps too, so + # we could try with 1.5*$w for example, but that doesn't work well for zigzag fill + # because it tends to create very sparse points along the gap when the infill direction + # is not parallel to the gap (1.5*$w thus may only work well with a straight line) my $w = $self->perimeter_flow->width; - my @widths = (1.5 * $w, $w, 0.4 * $w); # worth trying 0.2 too? + my @widths = ($w, 0.4 * $w); # worth trying 0.2 too? foreach my $width (@widths) { my $flow = $self->perimeter_flow->clone(width => $width);