Finished porting BoundingBox to XS

This commit is contained in:
Alessandro Ranellucci committed 2014-01-07 12:48:09 +01:00
1 parent ea47f3b6e7
commit b17d06f9d1
24 files changed
+160 -262

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ use Slic3r::Test;
}
});
my $bb = Slic3r::Geometry::BoundingBox->new_from_points(\@extrusion_points);
my $center = $bb->center_2D;
my $center = $bb->center;
ok abs(unscale($center->[X]) - $config->print_center->[X]) < epsilon, 'print is centered around print_center (X)';
ok abs(unscale($center->[Y]) - $config->print_center->[Y]) < epsilon, 'print is centered around print_center (Y)';
}