开发者

Does the GPC polygon clipper do triangulation?

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 essenti开发者_如何学JAVAally 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜