NAME

gluPwlCurve - describe a piecewise linear NURBS trimming curve

C SPECIFICATION

void gglluuPPwwllCCuurrvvee( GLUnurbs* _n_u_r_b,
                  GLint _c_o_u_n_t,
                  GLfloat* _d_a_t_a,
                  GLint _s_t_r_i_d_e,
                  GLenum _t_y_p_e )

delim $$

PARAMETERS

_n_u_r_b
Specifies the NURBS object (created with gglluuNNeewwNNuurrbbssRReennddeerreerr).
_c_o_u_n_t
Specifies the number of points on the curve.
_d_a_t_a
Specifies an array containing the curve points.
_s_t_r_i_d_e
Specifies the offset (a number of single-precision floating-point values) between points on the curve.
_t_y_p_e
Specifies the type of curve. Must be either GGLLUU__MMAAPP11__TTRRIIMM__22 or GGLLUU__MMAAPP11__TTRRIIMM__33.

DESCRIPTION

gglluuPPwwllCCuurrvvee 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 _t_y_p_e is GGLLUU__MMAAPP11__TTRRIIMM__22, then it describes a curve in two-dimensional (_u and _v) parameter space. If it is GGLLUU__MMAAPP11__TTRRIIMM__33, then it describes a curve in two-dimensional homogeneous (_u, _v, and _w) parameter space. See the gglluuBBeeggiinnTTrriimm reference page for more information about trimming curves.

NOTES

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

SEE ALSO

gglluuBBeeggiinnCCuurrvvee((33GG)), gglluuBBeeggiinnTTrriimm((33GG)), gglluuNNeewwNNuurrbbssRReennddeerreerr((33GG)), gglluuNNuurrbbssCCuurrvvee((33GG))