BoundingVolume calcBounds(Spatial n) {
BoundingVolume bounds = null;
if (n instanceof Geometry) {
bounds = new BoundingBox();
bounds.computeFromPoints(((Geometry) n).getVertexBuffer());
bounds.transform(
n.getLocalRotation(),
n.getLocalTranslation(),
n.getLocalScale());