Hi there ... hopefully someone out there can lend a hand to resolve what I am sure are 
a couple of dead easy (to those in the know!) questions.
I'm trying to get GeometryInfo geometry using a Triangle_Strip_Array to render 
properly and am having problems.
To take a simple example ..  I have 3 lines of coordinates,each with 4 vertices ... 
thus making 2 strips ie.

.       .       .
. Strip . Strip .
.  One  . Two   .
.       .       .

QUESTION 1: Each strip is made up of 8 vertices (making a total of 16 between them), 
but I only have a total of 12 vertices created. I have to declare a stripcount thus,
int[] stripCount = {8,8};
This then creates an exception!
... Are the shared ones implied implicitly or do I have to create the middle row of 
vertices twice?

QUESTION 2: I'm not sure how little information I can get away with when using 
GeometryInfo. I have an array of float coordinates  which are unordered in that they 
are simply the 12 coordinates read in rows. I then declare the following
        GeometryInfo gi = new(GeometryInfoGeometryInfo.TRIANGLE_STRIP_ARRAY);

        gi.setCoordinates(coordinateData);

        gi.setStripCounts(stripCount);

I then use the normalGenerator and the Stripifier and finally extract the Geometry 
Array.This doesn't render the strips in anyway close to how I assume it should.
I'm assuming the problem lies with setting the coordinates ... Do I need to index them 
so the triangles can be drawn and rendered?? If so, how do I do it?
Thanks
Andrew Powell

===========================================================================
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".

Reply via email to