mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -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
|
@ -15,9 +15,9 @@ has 'height' => (is => 'rw');
|
|||
sub _build_line {
|
||||
my $self = shift;
|
||||
|
||||
my @bb = $self->print->bounding_box;
|
||||
my $y = ($bb[Y2]-$bb[Y1]) * $self->y_percent;
|
||||
return [ [ $bb[X1], $y ], [ $bb[X2], $y ] ]
|
||||
my $bb = $self->print->bounding_box;
|
||||
my $y = $bb->size->[Y] * $self->y_percent;
|
||||
return [ [ $bb->x_min, $y ], [ $bb->x_max, $y ] ]
|
||||
}
|
||||
|
||||
sub export_svg {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue