Hi All
I have a bunch of triangles (generated NOT by the Triangulator)
represented by a coordinate array and an indexing array.
I am interested in generating the normals
for these triangles. So I put them in a GeometryInfo and pass that
to a NormalGenerator. I then retrieve an IndexedTriangleArray
from the GeometryInfo object. The questions I have with the
above are as below:
Q1:
Does the GeometryInfo/NormalGenerator operations reorder the
vertex indices ? That is, if "r" and "I" are the coordinate
and its index in the arrays that I pass onto the GeometryInfo,
then would the same correspondence also exist in the
IndexedTriangleArray that I extract from the GeometryInfo
after normal generation ?
Q2.
The NormalGenerator may possibly increase the LENGTH of the
index array depending upon the crease angle. Now, would the
NormalGenerator also possibly increase the range of indices ?
That is, if my original indices were in the range {0..9},
would the NormalGenerator produce indices in the range
{0...15}, for example ?
Q3.
One of my objectives is to be able to update the vertex colors
at run time, the colors being computed from the values
of the different variables stored at the vertices.
If the NormalGenerator does indeed reorder the
vertex indices, or increase the index range, then is there
a way to deduce a correspondence between the original and
generated indices ? Of course, one could always make the
floating point comparisons of the vertex coordinates, but is
there a better way ?
Any help would be appreciated.
Raj
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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".