From d63eabcfa502f1b105fc7de58537908e33207a07 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 17 Dec 2011 19:54:35 +0100 Subject: [PATCH] Clip less from loops to avoid gaps --- lib/Slic3r/Extruder.pm | 2 +- lib/Slic3r/Fill/Concentric.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index b32fc44e9..88de440c8 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -76,7 +76,7 @@ sub extrude_loop { my $extrusion_path = $loop->split_at($start_at); # clip the path to avoid the extruder to get exactly on the first point of the loop - $extrusion_path->clip_end(scale $Slic3r::nozzle_diameter); + $extrusion_path->clip_end(scale $Slic3r::nozzle_diameter / 2); # extrude along the path return $self->extrude($extrusion_path, $description); diff --git a/lib/Slic3r/Fill/Concentric.pm b/lib/Slic3r/Fill/Concentric.pm index 623d14ea2..3fd60862d 100644 --- a/lib/Slic3r/Fill/Concentric.pm +++ b/lib/Slic3r/Fill/Concentric.pm @@ -47,7 +47,7 @@ sub fill_surface { my $path = $loop->split_at($cur_pos); # clip the path to avoid the extruder to get exactly on the first point of the loop - $path->clip_end(scale $Slic3r::nozzle_diameter); + $path->clip_end(scale $Slic3r::nozzle_diameter / 2); push @paths, $path->p; }