[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

gluPwlCurve Subroutine

Purpose

Defines a piecewise linear non-uniform rational B-spline (NURBS) trimming curve.

Library

OpenGL C bindings library: libGL.a

C Syntax

void gluPwlCurve(GLUnurbsObj *nobj, 
   GLint Count, 
   GLfloat *Array, 
   GLint Stride, 
   GLenum Type)

Description

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.)

Parameters

nobj Specifies the NURBS object created with the gluNewNurbsRenderer subroutine.
Count Specifies the number of points on the curve.
Array 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 curve type. The valid types are GLU_MAP1_TRIM_2 and GLU_MAP1_TRIM_3.

Files

/usr/include/GL/gl.h Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The gluBeginCurve subroutine, gluBeginTrim subroutine, gluNewNurbsRenderer subroutine, gluNurbsCurve subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]