gluPwlCurve

describe a piecewise linear NURBS trimming curve

Signature

gluPwlCurve( GLUnurbs* ( nurb ) , GLint ( count ) , GLfloat* ( data ) , GLint ( stride ) , GLenum ( type ) )-> void
gluPwlCurve( nurb , count , data , stride , type )
gluPwlCurve -- piece-wise linear curve within GLU context

    data -- the data-array
    type -- determines number of elements/data-point
    

Parameters

VariablesDescription
nurb
Specifies the NURBS object (created with gluNewNurbsRenderer ).
count
Specifies the number of points on the curve.
data
Specifies an array containing the curve points.
stride
Specifies the offset (a number of single-precision floating-point values) between points on the curve.
type
Specifies the type of curve. Must be either GLU_MAP1_TRIM_2 or 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.

gluPwlCurve
OpenGLContext tests/redbook_trim.py Lines: 113, 120
OpenGLContext OpenGLContext/scenegraph/nurbs.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 119, 125