GPC 多边形裁剪器可以进行三角测量吗?

发布于 2024-09-14 15:26:31 字数 280 浏览 0 评论 0原文

我正在此处查看有关此库的问题。然而,我仍然不清楚这个库是否可以像 glu tesselator 那样返回一系列三角形,然后我可以使用 OpenGL 进行渲染。如果可以做到这一点,这是如何做到的?我只是通过阅读文档并不清楚这一点。所以本质上我想找出的是,如果它实际上可以三角测量,一旦我添加轮廓,我如何获得三角形顶点,以便我可以用 opengl 渲染它们?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月亮是我掰弯的 2024-09-21 15:26:31

GPC 将生成轮廓(多边形边界)输出,或者给出一系列三角形条带的结果,用于多边形内部的实体渲染。有两个函数在两种输出之间进行选择:gpc_polygon_clip() 和 gpc_tristrip_clip()。干杯,--Toby Howard,GPC 许可经理。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文