can you tell me how to use gluNurbsSurface()

In my project I use gluNurbsSurface() to draw NURBS surface. The control points of surface are from a data file. The dimension of Control points array is not fixed. How do I draw this NURBS surface?

There’s a lot of room for interpretation here. I’m afraid that glu is not likely to be a fast, generic solution for your NURBS stuff. Probably be better off generating your geometry through your own subdivision algorithm, dynamically. Without more info on the overall goal and constraints it’s hard to guess, but at the very least it sounds like you’ll need some sort of adaptive strategy.

P.S. Please don’t cross post.