Fix rotation and scaling in plater producing mispositioned objects in G-code after recent changes. Includes a large refactoring and the new Slic3r::Geometry::BoundingBox class. #1171 #1191

This commit is contained in:
Alessandro Ranellucci 2013-06-07 23:16:02 +02:00
parent 9ea55497c2
commit 510c2092df
8 changed files with 151 additions and 32 deletions

View file

@ -408,6 +408,11 @@ sub extents {
return Slic3r::Geometry::bounding_box_3D($self->used_vertices);
}
sub bounding_box {
my $self = shift;
return Slic3r::Geometry::BoundingBox->new(extents => [ $self->extents ]);
}
sub size {
my $self = shift;
return Slic3r::Geometry::size_3D($self->used_vertices);