Lan,
I'm not sure I understand exactly what you are asking. The code you
have below does not call the Stripifier at all. However, you should set
the color of your data before you call the stripifier. Color
information is used for building strips. Please send me a short demo
program if you are having problems.
andrea
Lan Wu-Cavener wrote:
>
> Hi, all:
>
> I used the GeometryInfo to read in Triangle_Array. After calling
> stripifier, I retrieve the GoemetryArray using shape3D. getGeometry().
>
> Then when I use GeometryArray.setColor(int index, Color3f color), I found
> the triangles are number in a reverse order respective to their original
> input order. For instance, I have a trip of 4 triangles which are input in
> the order from left to right. After I called all the aforementioned
> functions, The ".setColor(index, black) with index from 0-3 will set the
> vertex 0 to 3 of the right most triangle to black.
>
> I have tried couple of time, one with the IndexedGeometryArray, I found the
> same results.
> Could any one confirm that is what it should be? Thanks!
>
> Lan
>
> GeometryInfo gi1 = new GeometryInfo(GeometryInfo.TRIANGLE_ARRAY);
> gi1.setCoordinates(tvertices);
> gi1.setCoordinateIndices(tvertex_ind);
> gi1.setColors(colors);
> gi1.setColorIndices(tcolor_ind);
> Lan Wu-Cavener
> Research Associate and Programmer
> Dept. of Landscape Architecture
>
> ===========================================================================
> 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".
===========================================================================
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".