确定相交的四边形?

发布于 2024-12-18 23:59:28 字数 125 浏览 4 评论 0原文

是否有可能检测一个对象是否与 Opengl 中的另一个对象相交?

例如:我有 2 个四边形(后来的 nurbs),我正在移动这些四边形,以便它们在某个点相交。现在我想剪掉那些位于边缘的部分。结果应该是一个漂亮光滑的边缘。

Is there a possibility to detect whether an object intersects another object in Opengl ?

For example: I have 2 quads(later nurbs),I am moving these quads so that at some point they intersect. Now I would like to cut out those parts which are lying over the edge. The result should be a nice smooth edge.

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

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

发布评论

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

评论(1

勿忘心安 2024-12-25 23:59:28

OpenGL 不是一个几何库。这是一个绘图API。你向它发送点、线和三角形,它就会绘制它们。 OpenGL 中没有“几何对象”的概念。

您想要做的是几何库的任务,例如 GTS 或类似的。

OpenGL is not a geometry library. It's a drawing API. You send it points, lines and triangles, and it draws them. There's no notion of "geometrical objects" in OpenGL.

What you want to do is the task for geometry libraries, like GTS or similar.

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