确定相交的四边形?
是否有可能检测一个对象是否与 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.