gluNurbsCurve

define the shape of a NURBS curve

Signature

gluNurbsCurve( GLUnurbs* ( nurb ) , GLint ( knotCount ) , GLfloat * ( knots ) , GLint ( stride ) , GLfloat * ( control ) , GLint ( order ) , GLenum ( type ) )-> void
gluNurbsCurve( nurb , knotCount , knots , stride , control , order , type )
Pythonic version of gluNurbsCurve

    Calculates knotCount, stride, and order automatically
    

Parameters

VariablesDescription
nurb
Specifies the NURBS object (created with gluNewNurbsRenderer ).
knotCount
Specifies the number of knots in knots . knotCount equals the number of control points plus the order.
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
OpenGLContext tests/redbook_trim.py Lines: 119
OpenGLContext OpenGLContext/scenegraph/nurbs.py Lines: 47, 268, 282
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 131