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

+2 -2
View File
@@ -22,8 +22,8 @@ sub infill_direction {
my (@rotate, @shift);
$rotate[0] = Slic3r::Geometry::deg2rad($self->angle);
$rotate[1] = $self->bounding_box
? $self->bounding_box->center_2D
: $surface->expolygon->bounding_box->center_2D;
? $self->bounding_box->center
: $surface->expolygon->bounding_box->center;
@shift = @{$rotate[1]};
if (defined $self->layer_id) {