Name
nurb:Surface -- define the shape of a NURBS surface
Synopsis
nurb:Surface(sKnotsArray, tKnotsArray, controlArray, type)
Function
Use nurb:Surface() within a NURBS (Non-Uniform Rational B-Spline) surface definition to describe the shape of a NURBS surface (before any trimming). To mark the beginning of a NURBS surface definition, use the nurb:BeginSurface() command. To mark the end of a NURBS surface definition, use the nurb:EndSurface() command. Call nurb:Surface() within a NURBS surface definition only.

Positional, texture, and color coordinates are associated with a surface by presenting each as a separate nurb:Surface() between a nurb:BeginSurface() / nurb:EndSurface() pair. No more than one call to nurb:Surface() for each of color, position, and texture data can be made within a single nurb:BeginSurface() / nurb:EndSurface() pair. Exactly one call must be made to describe the position of the surface (a type of #GLU_MAP2_VERTEX_3 or #GLU_MAP2_VERTEX_4).

A NURBS surface can be trimmed by using the commands nurb:Curve() and nurb:PwlCurve() between calls to nurb:BeginTrim() and nurb:EndTrim().

Please consult an OpenGL reference manual for more information.

Inputs
sKnotsArray
specifies an array of non-decreasing knot values in the parametric u direction
tKnotsArray
specifies an array of non-decreasing knot values in the parametric v direction
controlArray
specifies an array containing control points for the NURBS surface
type
specifies type of the surface; can be any of the valid two-dimensional evaluator types (such as #GLU_MAP2_VERTEX_3 or #GLU_MAP2_COLOR_4)

Show TOC