开发者

Does the GPC polygon clipper do triangulation?

开发者 https://www.devze.com 2023-01-11 15:07 出处:网络
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 rend

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

精彩评论

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