c++openglcutnurbs

Determing intersecting quads?


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.


Solution

  • 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.