I have used the function “GL_QUADS” within the “openGL” on the VC++ to draw a curved surface.
And finished the curved surface, but had a problem:
The distance of curve line to line is too large.
How can I set up the distance (pixel) between the curve line ?
Is there any problem when I use the openGL or VC++ ?
Or is there any function about how to solve this problem ?
thanks a lot!
I don’t use that stuff very much, but I don’t think OpenGL support what you want, yoo have to do the tesselation yourself or use an extra library that support it.
If I understand you correct, then you want to do dynamic tesselation of the curve/surface with a minimum error value (the minimu distance between the curve and any point on the tesselated linestrip).
Many spline/nurb libraries support this.
(IRIT, OpenCascade, …)