mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 22:20:02 +02:00
Refactoring: use Slic3r::Geometry::BoundingBox objects everywhere
This commit is contained in:
1 parent
07407e5dbd
commit
ac4a0bcdd8
20 files changed
+105
-127
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user