Question

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.

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top