mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Refactoring: use Slic3r::Geometry::BoundingBox objects everywhere
This commit is contained in:
parent
07407e5dbd
commit
ac4a0bcdd8
20 changed files with 105 additions and 127 deletions
|
@ -123,7 +123,7 @@ sub clip_with_expolygon {
|
|||
|
||||
sub bounding_box {
|
||||
my $self = shift;
|
||||
return Slic3r::Geometry::bounding_box($self);
|
||||
return Slic3r::Geometry::BoundingBox->new_from_points($self);
|
||||
}
|
||||
|
||||
sub size {
|
||||
|
@ -133,8 +133,8 @@ sub size {
|
|||
|
||||
sub align_to_origin {
|
||||
my $self = shift;
|
||||
my @bb = $self->bounding_box;
|
||||
return $self->translate(-$bb[X1], -$bb[Y1]);
|
||||
my $bb = $self->bounding_box;
|
||||
return $self->translate(-$bb->x_min, -$bb->y_min);
|
||||
}
|
||||
|
||||
sub rotate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue