Hi all, I load a surface (ElevationGrid) with the VRML97 loader and like to have the coordinates of every Vertex... but just once.
to get all used Vertices I use:
GeometryArray dgeom=(GeometryArray)shape3d.getGeometry() ; int vertexanz=dgeom.getVertexCount() ; dgmpoints=new Point3f[vertexanz]; for(int i=0;i<dgmpoints.length;i++){ dgmpoints[i]=new Point3f(); } dgeom.getCoordinates(0, dgmpoints);
now I got a set of coordinates which containing centervertices 4 times, the edge-vertices twice and the corner vertices once. Came from triangulation. But what I need is an array with every single vertex. is there an easy way, or wouldn't it easier to get the VRML-ElevationGrid per ASCII-reading a second time and get all values between "hight[" and "]"?
best regards and thanks for any hint Rolf
-- Rolf Gabler-Mieck c/o LGI-Geographisches Institut der CAU-Kiel Ludewig-Meyen Str. 14 24098 Kiel Tel: +49 431-880.2955 FAX: +49 431-880.4658 e-mail: [EMAIL PROTECTED]
=========================================================================== 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".