gluTess usage?

Hi,
I am trying to use the gluTess functions to tesselate the concave polygons I have and render them correctly. I have arranged it such that in the Vertex Callback I get the vertex index since I am drawing an indexed polygon.
Now if I tesselate a rectangle, I should be getting 6 callbacks for the 2 triangles resulting from the tesselation. I am getting only 4. Can someone please tell me what I might be doing wrong?

shashi

Hi,

The tesselators output their geometry as a combination of triangles, triangle strips and fans. You’re propably getting a fan or a strip. You have to create begin and end callbacks as well, to keep track on what kind of geometry the tesselator is currently creating.

-Ilkka