pwlcurve.3gl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. '\" e
  2. '\"! eqn | mmdoc
  3. '\"macro stdmacro
  4. .ds Vn Version 1.2
  5. .ds Dt 6 March 1997
  6. .ds Re Release 1.2.0
  7. .ds Dp May 02 11:53
  8. .ds Dm 37 pwlcurve.
  9. .ds Xs 35475 4 pwlcurve.gl
  10. .TH GLUPWLCURVE 3G
  11. .SH NAME
  12. .B "gluPwlCurve
  13. \- describe a piecewise linear NURBS trimming curve
  14. .SH C SPECIFICATION
  15. void \f3gluPwlCurve\fP(
  16. GLUnurbs* \fInurb\fP,
  17. .nf
  18. .ta \w'\f3void \fPgluPwlCurve( 'u
  19. GLint \fIcount\fP,
  20. GLfloat* \fIdata\fP,
  21. GLint \fIstride\fP,
  22. GLenum \fItype\fP )
  23. .fi
  24. .EQ
  25. delim $$
  26. .EN
  27. .SH PARAMETERS
  28. .TP \w'\fIstride\fP\ \ 'u
  29. \f2nurb\fP
  30. Specifies the NURBS object (created with \%\f3gluNewNurbsRenderer\fP).
  31. .TP
  32. \f2count\fP
  33. Specifies the number of points on the curve.
  34. .TP
  35. \f2data\fP
  36. Specifies an array containing the curve points.
  37. .TP
  38. \f2stride\fP
  39. Specifies the offset (a number of single-precision floating-point values)
  40. between points on the curve.
  41. .TP
  42. \f2type\fP
  43. Specifies the type of curve.
  44. Must be either \%\f3GLU_MAP1_TRIM_2\fP or \%\f3GLU_MAP1_TRIM_3\fP.
  45. .SH DESCRIPTION
  46. \%\f3gluPwlCurve\fP describes a piecewise linear trimming curve for a NURBS surface.
  47. A piecewise linear curve consists of a list of
  48. coordinates of points in the parameter space for the
  49. NURBS surface to be trimmed. These points are connected
  50. with line segments to form a curve. If the curve is
  51. an approximation to a curve that is not piecewise linear,
  52. the points should be close enough in parameter space that the
  53. resulting path appears curved at the resolution used in the application.
  54. .P
  55. If \f2type\fP is
  56. \%\f3GLU_MAP1_TRIM_2\fP, then it describes a curve in two-dimensional (\f2u\fP
  57. and \f2v\fP) parameter space. If it is \%\f3GLU_MAP1_TRIM_3\fP, then it
  58. describes a curve in two-dimensional homogeneous (\f2u\fP, \f2v\fP,
  59. and \f2w\fP) parameter space.
  60. See the \%\f3gluBeginTrim\fP reference page for more information
  61. about trimming curves.
  62. .SH NOTES
  63. To describe a trim curve that closely follows the contours of a NURBS
  64. surface, call \%\f3gluNurbsCurve\fP.
  65. .SH SEE ALSO
  66. \%\f3gluBeginCurve(3G)\fP, \%\f3gluBeginTrim(3G)\fP, \%\f3gluNewNurbsRenderer(3G)\fP, \%\f3gluNurbsCurve(3G)\fP