Bugfix for recent solid infill adjustment math, to take float math into account

This commit is contained in:
Alessandro Ranellucci 2011-12-22 18:55:18 +01:00
parent 75cbe879b7
commit ab0300bb70

View file

@ -37,7 +37,7 @@ sub fill_surface {
my @paths = ();
my $x = $bounding_box->[X1];
my $is_line_pattern = $self->isa('Slic3r::Fill::Line');
for (my $i = 0; $x <= $bounding_box->[X2]; $i++) {
for (my $i = 0; $x <= $bounding_box->[X2] + scale epsilon; $i++) {
my $vertical_line = [ [$x, $bounding_box->[Y2]], [$x, $bounding_box->[Y1]] ];
if ($is_line_pattern && $i % 2) {
$vertical_line->[A][X] -= $line_oscillation;