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

View file

@ -55,8 +55,8 @@ void Spheroid::check_vertical_plan_collision(double& abscissa) {
Cuboid Spheroid::max_bounding_box() const { Cuboid Spheroid::max_bounding_box() const {
double max_radius = sqrt((3./4.) * V / PI / min_p); double max_radius = sqrt((3./4.) * V / PI / min_p);
double max_height = init_p; double max_height = init_p;
Point _bd1(max_radius, max_radius, max_height); Point _bd1(max_radius, max_height, max_radius);
Point _bd2(-max_radius, -max_radius, -max_height); Point _bd2(-max_radius, -max_height, -max_radius);
return Cuboid(_bd1, _bd2); return Cuboid(_bd1, _bd2);
} }