Do a getBounds on the sphere, and make sure the at the auto compute bounds is set to
true. The bounds should be passed to a bounding sphere and this has a method
geCenter. That should work.
com.sun.j3d.utils.geometry.Sphere sphere = new com.sun.j3d.utils.geometry.Sphere(10.0);
sphere.setAutoComputeBounds(true);
javax.media.j3d.BoundingSphere bSphere = sphere.getBounds();
javax.vecmath.Point3d center;
bSphere.getCenter( center );
Something like that should work.
>>> Kovalan Muniandy <[EMAIL PROTECTED]> 09/07/99 11:05AM >>>
I have spheres and cylinders in my scene. After transformation, how can
I get the center points of these objects. Alternatively, how do I get
the new bounding box/spheres for each objects?
Thank you,
Kovalan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".