mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Fix bounding_box_center()
This commit is contained in:
parent
116ab446e3
commit
93310a6a81
1 changed files with 2 additions and 2 deletions
|
@ -684,8 +684,8 @@ sub bounding_box {
|
||||||
sub bounding_box_center {
|
sub bounding_box_center {
|
||||||
my @bounding_box = bounding_box(@_);
|
my @bounding_box = bounding_box(@_);
|
||||||
return Slic3r::Point->new(
|
return Slic3r::Point->new(
|
||||||
($bounding_box[X2] - $bounding_box[X1]) / 2,
|
($bounding_box[X2] + $bounding_box[X1]) / 2,
|
||||||
($bounding_box[Y2] - $bounding_box[Y1]) / 2,
|
($bounding_box[Y2] + $bounding_box[Y1]) / 2,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue