1GLUPWLCURVE(3G) GLUPWLCURVE(3G)
2
3
4
6 gluPwlCurve - describe a piecewise linear NURBS trimming curve
7
8
10 void gluPwlCurve( GLUnurbs* nurb,
11 GLint count,
12 GLfloat* data,
13 GLint stride,
14 GLenum type )
15
16
18 nurb Specifies the NURBS object (created with gluNewNurbsRenderer).
19
20 count Specifies the number of points on the curve.
21
22 data Specifies an array containing the curve points.
23
24 stride Specifies the offset (a number of single-precision floating-
25 point values) between points on the curve.
26
27 type Specifies the type of curve. Must be either GLU_MAP1_TRIM_2 or
28 GLU_MAP1_TRIM_3.
29
31 gluPwlCurve describes a piecewise linear trimming curve for a NURBS
32 surface. A piecewise linear curve consists of a list of coordinates of
33 points in the parameter space for the NURBS surface to be trimmed.
34 These points are connected with line segments to form a curve. If the
35 curve is an approximation to a curve that is not piecewise linear, the
36 points should be close enough in parameter space that the resulting
37 path appears curved at the resolution used in the application.
38
39 If type is GLU_MAP1_TRIM_2, then it describes a curve in two-dimen‐
40 sional (u and v) parameter space. If it is GLU_MAP1_TRIM_3, then it
41 describes a curve in two-dimensional homogeneous (u, v, and w) parame‐
42 ter space. See the gluBeginTrim reference page for more information
43 about trimming curves.
44
46 To describe a trim curve that closely follows the contours of a NURBS
47 surface, call gluNurbsCurve.
48
50 gluBeginCurve(3G), gluBeginTrim(3G), gluNewNurbsRenderer(3G),
51 gluNurbsCurve(3G)
52
53
54
55
56 GLUPWLCURVE(3G)