From 048410ac5293b94ca579ffc5cbba8c8de8e76f26 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 22 Nov 2011 20:35:05 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix:=20some=20infill=20lines=20extruded=20ou?= =?UTF-8?q?tside=20objects=20when=20using=2045=C2=B0=20infill=20angle.=20#?= =?UTF-8?q?65?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Slic3r/Fill/Base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Fill/Base.pm b/lib/Slic3r/Fill/Base.pm index 85e2fbea5..630dabd26 100644 --- a/lib/Slic3r/Fill/Base.pm +++ b/lib/Slic3r/Fill/Base.pm @@ -15,7 +15,7 @@ sub infill_direction { # set infill angle my (@rotate, @shift); $rotate[0] = Slic3r::Geometry::deg2rad($Slic3r::fill_angle); - $rotate[1] = [ $self->max_print_dimension / 2, $self->max_print_dimension / 2 ]; + $rotate[1] = [ $self->max_print_dimension * sqrt(2) / 2, $self->max_print_dimension * sqrt(2) / 2 ]; @shift = @{$rotate[1]}; # alternate fill direction