mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Add calculation of bounding sphere for model projection, closes #2319
This commit is contained in:
@@ -202,6 +202,7 @@ void RenderableModelProjection::initializeGL() {
|
||||
_projectionComponent.initializeGL();
|
||||
|
||||
_geometry->initialize();
|
||||
_geometry->calculateBoundingRadius();
|
||||
setBoundingSphere(_geometry->boundingRadius() * _modelScale);
|
||||
|
||||
// Set Interaction sphere size to be 10% of the bounding sphere
|
||||
|
||||
Reference in New Issue
Block a user