02/21/2002
15-462 Graphics I
26
Curves and Surface in OpenGL
•Central mechanism is evaluator
•Defined by array of control points
•Evaluate coordinates at u (or u and v) to generate vertex
•Define Bezier curve: type = GL_MAP_VERTEX_3
•
•Enable evaluator
•
•Evaluate Bezier curve
glMap1f(type, u0, u1, stride, order, point_array)
glEnable(type)
glEvalCoord1f(u)