mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Clean up code for planet radius and bounding sphere calculation (#289)
- Remove some power scaled coordaintes. - Remove spice dependency from sphere geometry. - Remove dead code.
This commit is contained in:
@@ -144,7 +144,7 @@ bool ModelGeometry::initialize(Renderable* parent) {
|
||||
glm::pow(v.location[1], 2.f) +
|
||||
glm::pow(v.location[2], 2.f), maximumDistanceSquared);
|
||||
}
|
||||
_parent->setBoundingSphere(PowerScaledScalar(glm::sqrt(maximumDistanceSquared), 0.0));
|
||||
_parent->setBoundingSphere(glm::sqrt(maximumDistanceSquared));
|
||||
|
||||
if (_vertices.empty())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user