OpenGL - Triangulation. Can It be used as an API?
I need to have triangulation as a part of my project. OpenGL uses its ow开发者_如何学编程n tessellation logic for rendering points.
Can the triangulation logic can be used as an API, giving points as input and get the triangulation index as output?
OpenGL is a drawing API, not some all purpose geometry library. You must use some third party tesselation-triangulation library. FYI: GLU (gluTesselate) is not part of OpenGL.
OpenGL uses its own tessellation logic for rendering points
What exactly do you mean/think by that? OpenGL takes vertex data and a primitive mode and rasters it. You may attach a tesselation shader, to refine geometry on the go, but that's not what you're probably after.
精彩评论