If you load an OBJ-file you usualy get a shape3D object. If you want to get the geometry of it you need to set the capabilities (Shape3D.ALLOW_GEOMETRY_READ, ..._WRITE) I think then you can do what you want with the geometry.
Martin ----- Original Message ----- From: "Dennis Msakni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 25, 2003 11:15 AM Subject: [JAVA3D] Aquiring Center of OBJ > Hi folks! > > I'm writing a small Tool to generate some featurePoints for given OBJ- > Files. There are two OBJs, one that stays and one that can be moved by > keys while they can both be moved by mouse. When the second Object is > satisfyingly positioned I want to print out the vector build by the > coordinates of it's center accordingly to the coordinates of the center > of the first object. But how can I (easily) aquire those coordinates (I > know how to calculate it if I can access the geometry- data of the > object) since I use SUNs OBJLoader up till now (I didn't want to include > another handwritten one again because of the overhead). Thus I only have > the scenegraph and no specific geometryInfo of the two OBJs. Is there a > way to get the vertices out of the scenegraph or do I need to load the > OBJ myself to get the information? > Any help appreciated and thanks in advance. > > Greetz... > > > ...Dennis > > =========================================================================== > 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".
