Title: Trouble with Triangle Fan Array

Hi,

When I generate a GeometryInfo object using Triangle Fan Array for plotting a circle I do get a circle with all the fans too!!!

How do I avoid getting those fans..(Lines from the center of the circle to all along the circumference of the circle.

Here goes the  Code that I wrote.

GeometryInfo gi = new GeometryInfo(GeometryInfo.TRIANGLE_FAN_ARRAY);

.....set the coordinates(The coordinates are the center coordinate and then coordinates all along the circumference of the circle.)

.....set the stripcounts.....
......appearance........
PolygonAttributes polyAppear = new PolygonAttributes();
polyAppear.setCullFace(polyAppear.CULL_NONE);
polyAppear.setBackFaceNormalFlip(true);
polyAppear.setPolygonMode(PolygonAttributes.POLYGON_LINE);
appearance.setPolygonAttributes(polyAppear);

This is the problem I get for all indexed Arrays. Can anybody help me...

Thanx & Regards
(G.Murali Shankar).

Reply via email to