Signature
Parameters
Variables | Description |
---|---|
nurb |
Specifies the NURBS object (created with
gluNewNurbsRenderer
).
|
knotCount | |
knots |
Specifies an array of
knotCount
nondecreasing knot values.
|
stride |
Specifies the offset (as a number of single-precision floating-point values)
between successive curve control points.
|
control |
Specifies a pointer to an array of control points. The coordinates must
agree with
type
, specified below.
|
order |
Specifies the order of the NURBS curve.
order
equals degree + 1, hence
a cubic curve has an order of 4.
|
type |
Specifies the type of the curve. If this curve is defined within a
gluBeginCurve
/
gluEndCurve
pair, then
the type can be any of the valid
one-dimensional evaluator types (such as
GLU_MAP1_VERTEX_3
or
GLU_MAP1_COLOR_4
). Between a
gluBeginTrim
/
gluEndTrim
pair,
the only valid types are
GLU_MAP1_TRIM_2
and
GLU_MAP1_TRIM_3
.
|
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
gluNurbsCurve