views:

36

answers:

1

I was looking at this question Here in regards to this library. However it is still unclear to me if this library can do like glu tesselator does and return a series of triangles which I can then render with OpenGL. If it can do this, how is this done? I'm just not clear on this from reading the docs. So essentially what i'm trying to find out is, if it can in fact triangulate, once I add my contours, how do I get the triangle verticies so I can render them with opengl?

Thanks

A: 

Hi,

GPC will either produce contour (polygon boundary) output, or will give a result as a series of triangle strips for the solid rendering of polygon interiors. Two functions select between the two kinds of output: gpc_polygon_clip() and gpc_tristrip_clip(). Cheers, --Toby Howard, GPC Licensing Manager.

Toby Howard
I'm sorry could you elaborate on the first one(gpc_polygon_clip() )Does it return a series of triangles to render like GLUTesselator or is it just a contour of verticies for an outline?
Milo