From 4d100731a2b0dce5f32419ac3b42439b0ea3593e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 13 Feb 2018 16:13:03 +0100 Subject: [PATCH] Fix: invert spheroid bounding box axes --- spheroid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spheroid.cpp b/spheroid.cpp index 2b31266..88dbb76 100644 --- a/spheroid.cpp +++ b/spheroid.cpp @@ -55,8 +55,8 @@ void Spheroid::check_vertical_plan_collision(double& abscissa) { Cuboid Spheroid::max_bounding_box() const { double max_radius = sqrt((3./4.) * V / PI / min_p); double max_height = init_p; - Point _bd1(max_radius, max_radius, max_height); - Point _bd2(-max_radius, -max_radius, -max_height); + Point _bd1(max_radius, max_height, max_radius); + Point _bd2(-max_radius, -max_height, -max_radius); return Cuboid(_bd1, _bd2); }