I think you can do something like: Point3f center = new Point3f(); sphere.getShape().getGeometry().getCoordinate(0, center);
That's what it looks like from looking at the class docs, but I haven't tried it. I'm assuming that getGeometry() returns a GeometryArray in the case of spheres. Lars > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED] Behalf Of Nick Collier > Sent: Tuesday, July 08, 2003 7:46 AM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] shape locations > > > Thanks. You are, of course, correct. I guess what I'm asking > is how much > "housekeeping" I have to do myself. If I translate the spheres in the > space, is there some method I can use to get the new center > point of the > sphere (e.g. sphere.getCenter()) or do I have to translate the sphere > and also translate the center point as well? > > thanks, > > Nick > =========================================================================== 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".
