protected float getSceneSize() {
boolean autocompute = scene.getBranchgroup().getBoundsAutoCompute();
scene.getBranchgroup().setBoundsAutoCompute(true);
scene.getBranchgroup().updateBounds(true);
scene.getBranchgroup().setBoundsAutoCompute(autocompute);
Bounds bounds = scene.getBranchgroup().getBounds();
// Should be the case for xith3d
if (bounds instanceof Sphere) {
return ((Sphere)bounds).getRadius();
}
// else, include this bounds object in a bounding sphere and get radius