}
} else if (node instanceof Link) {
computeBounds(((Link)node).getSharedGroup(), bounds, parentTransformations);
} else if (node instanceof Shape3D) {
Bounds shapeBounds = ((Shape3D)node).getBounds();
shapeBounds.transform(parentTransformations);
bounds.combine(shapeBounds);
}
}
}
}