•Specify
knot arrays for splines
•
•
•
•
•
•
•For
more see [Red Book, Ch. 12]
GLfloat knots[8] = {0.0, 0.0, 0.0, 0.0, 1.0, 1.0,
1.0, 1.0};
gluBeginSurface(theNurb);
gluNurbsSurface(theNurb,
8, knots, 8, knots,
4 * 3, 3, &ctlpoints[0][0][0],
4, 4, GL_MAP2_VERTEX_3);
gluEndSurface(theNurb);