> From: Guillaume Bedard <[EMAIL PROTECTED]> > > I know that there has already been a discussion on that issue, > but I think that no satisfying answer has emerged. Generally, > a BoundingBox can be created from a BoundingSphere, but that > does not allow for non uniform scale ratios such as 1:3:2. > > So is it possible to obtain a BoundingBox instead of a > BoundingSphere when calling the getBounds() method on > a given Node object? In general, no. If you allow J3D to auto-compute bounds, the grouping nodes will have BoundingSpheres, not BoundingBoxes. Once you loosen the bound to a sphere there is no way to get back to the tighter BoundingBox. On the other hand, the bounds returned for Shape3D nodes will be BoundingBox's, which is what you want. You could also use the BoundingBox combine() methods to compute BoundingBoxes for the grouping nodes as well. You might want to experiment with turning off auto bounds computation for the grouping nodes and then doing the bounds computation for the groups yourself. That way you could get BoundingBoxes for all the nodes of your scene graph. Doug Gehringer Sun Microsystems ===================================================================== To subscribe/unsubscribe, send mail to [EMAIL PROTECTED] Java 3D Home Page: http://java.sun.com/products/java-media/3D/
