mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Refactoring: use Slic3r::Geometry::BoundingBox objects everywhere
This commit is contained in:
@@ -4,7 +4,7 @@ use Moo;
|
||||
extends 'Slic3r::Fill::PlanePath';
|
||||
|
||||
use Math::PlanePath::Flowsnake;
|
||||
use Slic3r::Geometry qw(X X1 X2);
|
||||
use Slic3r::Geometry qw(X);
|
||||
|
||||
# Sorry, this fill is currently broken.
|
||||
|
||||
@@ -12,7 +12,7 @@ sub process_polyline {
|
||||
my $self = shift;
|
||||
my ($polyline, $bounding_box) = @_;
|
||||
|
||||
$_->[X] += ($bounding_box->[X1] + $bounding_box->[X2]/2) for @$polyline;
|
||||
$_->[X] += $bounding_box->center_2D->[X] for @$polyline;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user