gluPwlCurve

gluPwlCurve function

The gluPwlCurve function describes a piecewise linear Non-Uniform Rational B-Spline (NURBS) trimming curve.

Syntax


void WINAPI gluPwlCurve(
   GLUnurbs *nobj,
   GLint    count,
   GLfloat  *array,
   GLint    stride,
   GLenum   type
);

Parameters

nobj

The NURBS object (created with gluNewNurbsRenderer).

count

The number of points on the curve.

array

An array containing the curve points.

stride

The offset (a number of single-precision floating-point values) between points on the curve.

type

The type of curve. Must be either GLU_MAP1_TRIM_2 or GLU_MAP1_TRIM_3.

Return value

This function does not return a value.

Remarks

The gluPwlCurve function 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.

If type is GLU_MAP1_TRIM_2, it describes a curve in two-dimensional (u and v) parameter space. If it is GLU_MAP1_TRIM_3, then it describes a curve in two-dimensional homogeneous (u, v, and w) parameter space. For more information about trimming curves, see gluBeginTrim.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Glu.h

Library

Glu32.lib

DLL

Glu32.dll

See also

gluBeginCurve
gluBeginTrim
gluNewNurbsRenderer
gluNurbsCurve

 

 

Community Additions

ADD
Show:
© 2016 Microsoft