Requested by Don Scales:
I find it very useful using the vecmath routines in Java3D. It helps in designing
and writing code if the vertices, normals and texture coordinates are stored and
managed in their appropriate types - Point3f, Vector3f and TexCoord2f.
I use lots of arrays in my code and therefore have arrays of Point3f etc.
I have been using Buffer - FloatBuffer, ByteBuffer more and more in my code
and like the way you can efficiently access the data in different formats.
I have been looking at using PointBuffer3f for a buffer of 3D points and then
passing the associated float buffer to the lower level routines such as
TriangleMesh.
I have not been able to write PointBuffer3f, I suspect native language routines
might be required. I am interested in what you think about vecmath.
I find it very useful using the vecmath routines in Java3D. It helps in designing
and writing code if the vertices, normals and texture coordinates are stored and
managed in their appropriate types - Point3f, Vector3f and TexCoord2f.
I use lots of arrays in my code and therefore have arrays of Point3f etc.
I have been using Buffer - FloatBuffer, ByteBuffer more and more in my code
and like the way you can efficiently access the data in different formats.
I have been looking at using PointBuffer3f for a buffer of 3D points and then
passing the associated float buffer to the lower level routines such as
TriangleMesh.
I have not been able to write PointBuffer3f, I suspect native language routines
might be required. I am interested in what you think about vecmath.