Fix: invert spheroid bounding box axes

This commit is contained in:
Théophile Bastian 2018-02-13 16:13:03 +01:00
parent ab0cac72c3
commit 4d100731a2
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}