Defines a piecewise linear non-uniform rational B-spline (NURBS) trimming curve.
OpenGL C bindings library: libGL.a
void gluPwlCurve(GLUnurbsObj *nobj, GLint Count, GLfloat *Array, GLint Stride, GLenum Type)
The gluPwlCurve subroutine describes a piecewise linear trimming curve for a NURBS surface. A piecewise linear curve consists of a list of coordinates of points in the parameter space for the NURBS surface to be trimmed. These points are connected with line segments to form a curve. If the curve is an approximation to a real curve, the points should be close enough that the resulting path appears curved at the resolution used in the application.
A value of GLU_MAP1_TRIM_2 assigned for the Type parameter describes a curve in 2-dimensional (2D) (u and v) parameter space; GLU_MAP1_TRIM_3 describes a curve in 2D homogeneous (u, v, and w) parameter space. (See the gluBeginTrim subroutine for more information on trimming curves.)
|Specifies the NURBS object created with the gluNewNurbsRenderer subroutine.
|Specifies the number of points on the curve.
|Specifies an array containing the curve points.
|Specifies the offset (a number of single-precision floating-point values) between points on the curve.
|Specifies the curve type. The valid types are GLU_MAP1_TRIM_2 and GLU_MAP1_TRIM_3.
|Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.
The gluBeginCurve subroutine, gluBeginTrim subroutine, gluNewNurbsRenderer subroutine, gluNurbsCurve subroutine.