> From: Omer Haybat [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 11, 2005 12:26 PM
> To: JAVA3D-INTEREST@JAVA.SUN.COM
> Subject: [JAVA3D] Fill a close LineStripArray with color
>
> Hi,
> how can i fill a closed LineStripArray wäth color?

You can't.  You have to use solid polygons constructed from triangles.

You can use GeometryInfo with the POLYGON_ARRAY flag to convert arbitrary 
contours (your LineStripArray vertices) into triangles. Then they can be 
rendered as solid polygons by extracting a GeometryArray from the GeometryInfo.

You could then use your original LineStripArray to highlight the edges of your 
polygons.  You may have to apply the polygon offset attribute in order to make 
sure the lines are in front of the polygons so that they are completely visible.

-- Mark Hood

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