Hi ramanath to get the geomertry of a shape3d you need to call shape3d.getGeometry() like this
GeomertyInfo gi = new GeometryInfo((GeometryArray) shape3D.getGeometry()); GeometryArray ga = gi.getGeometryArray(); if you need to move some vertices you should indexify the Array. You use it if you don't want to move a vertex twice. ga.indexify(); Point3f[] points; ga.getCoordinates(0,points); int[] pointindices = ga.getCoordinateIndices(); and then you can make what you want with this vertices. greetz Martin ----- Original Message ----- From: "ramanathan v" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 03, 2002 8:08 PM Subject: [JAVA3D] Methods to get the geometry / vertices > Hi, > > I am looking for some methods that will help me in > getting the vertices of the shape3d after its be > tranformed and placed at a particular coordinates. > How do i retrieve the vertices from a shape3d object. > > Thanks, > ramanathan > > > __________________________________________________ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > > =========================================================================== > 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".
