Hi, Yazel,
After reading your discussion, my question is simplified as following:
If I have a geometry with 20 vertices and 38 vertex index, I am sure that there
should be 20 vertex coordinates. What I want to know is how many normals and
texture coordinates there should be. According to your message, it seems for me
that there also should be 20 normals and 20 texture coordinates for each of the
vertex. Right?
But I think the number of normals or texture coordinates should be allowed to be
more than (or perhaps less than ) the number of vertices (here it is 20) as
long as the size of normal index and texture coordinate index are the same as
the size of vertex coordinate index.
If what I said is right, for example, the normals are 30 (rather than 20), then
when using the setNormals(index, norms) to set the normals, there is a error
message "java.lang.ArrayIndexOutOfBoundsException". In my understanding, this is
because the index is 20 while the norms is 30.
I have found that VRML has provided the functionality that I just mentioned when
using IndexedFaceSet to generate a geometry.
Is It my fault or the Java3D just providessuch function?
Liming
===========================================================================
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".