mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Align rectilinear and line infill across layers (new implementation). #712
This commit is contained in:
parent
c723c07f8c
commit
430c825918
7 changed files with 57 additions and 51 deletions
|
@ -679,10 +679,10 @@ sub bounding_box {
|
|||
}
|
||||
|
||||
sub bounding_box_center {
|
||||
my @bounding_box = bounding_box(@_);
|
||||
my ($bounding_box) = @_;
|
||||
return Slic3r::Point->new(
|
||||
($bounding_box[X2] + $bounding_box[X1]) / 2,
|
||||
($bounding_box[Y2] + $bounding_box[Y1]) / 2,
|
||||
($bounding_box->[X2] + $bounding_box->[X1]) / 2,
|
||||
($bounding_box->[Y2] + $bounding_box->[Y1]) / 2,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue