nurb:Curve(knotsArray, controlArray, type)
When nurb:Curve() appears between a nurb:BeginCurve() / nurb:EndCurve() pair, it is used
to describe a curve to be rendered. Positional, texture, and color coordinates are associated by presenting each as a separate nurb:Curve()
between a nurb:BeginCurve() / nurb:EndCurve() pair. No more than one call to nurb:Curve() for
each of color, position, and texture data can be made within a single nurb:BeginCurve() / nurb:EndCurve()
pair. Exactly one call must be made to describe the position of the curve (a type of #GLU_MAP1_VERTEX_3
or #GLU_MAP1_VERTEX_4
).
When nurb:Curve() appears between a nurb:BeginTrim() / nurb:EndTrim() pair, it is used to describe a trimming curve on a NURBS
surface. If type is #GLU_MAP1_TRIM_2
, then it describes a curve in two-dimensional (u and v) parameter space. If it is #GLU_MAP1_TRIM_3
, then
it describes a curve in two-dimensional homogeneous (u, v, and w) parameter space. See nurb:BeginTrim for more discussion about trimming curves.
Please consult an OpenGL reference manual for more information.
type
, specified below