I have a program that receives from the user control points of two B-Spline curves (de Boor points) and draws the surface with these curves as edges, connecting in a straight line between each two control points in different curves (ruled surface).

My problem is the gluNurbsSurface method doesn’t work right when the control points array is dynamically allocated, where it works fine when it is statically allocated. i didn’t find how to operate it right.

I would be grateful for any help anyone can give me with this.