Bugfix: some infill lines extruded outside objects when using 45° infill angle. #65

degen-loop-screen
Alessandro Ranellucci 2011-11-22 20:35:05 +01:00
parent 84d9f5fd9d
commit 048410ac52
1 changed files with 1 additions and 1 deletions

View File

@ -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