Tao.OpenGl SDK Documentation

Glu.gluPwlCurve Method (GLUnurbs, Int32, Single[], Int32, Int32)

Describes a piecewise linear NURBS trimming curve.

[Visual Basic]
Overloads Public Shared Sub gluPwlCurve( _
   ByVal nurb As GLUnurbs, _
   ByVal count As Integer, _
   ByVal data As Single(), _
   ByVal stride As Integer, _
   ByVal type As Integer _
)
[C#]
public static void gluPwlCurve(
   GLUnurbs nurb,
   int count,
   float[] data,
   int stride,
   int type
);

Parameters

nurb
The NURBS object (created with gluNewNurbsRenderer).
count
The number of points on the curve.
data
An array containing the curve points.
stride
The offset (a number of single precision?–floating-point values) between points on the curve.
type/i>
The type of curve. Must be either GLU_MAP1_TRIM_2 or GLU_MAP1_TRIM_3.

Remarks

gluPwlCurve 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 curve that is not piecewise linear, the points should be close enough in parameter space that the resulting path appears curved at the resolution used in the application.

If type is GLU_MAP1_TRIM_2, then 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. See the gluBeginTrim reference page for more information about trimming curves.

NOTES

To describe a trim curve that closely follows the contours of a NURBS surface, call gluNurbsCurve.

See Also

Glu Class | Tao.OpenGl Namespace | Glu.gluPwlCurve Overload List | gluBeginCurve | gluBeginTrim | gluNewNurbsRenderer | gluNurbsCurve