partialdisk.3gl 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 partialdi
  9. .ds Xs 56621 5 partialdisk.gl
  10. .TH GLUPARTIALDISK 3G
  11. .SH NAME
  12. .B "gluPartialDisk
  13. \- draw an arc of a disk
  14. .SH C SPECIFICATION
  15. void \f3gluPartialDisk\fP(
  16. GLUquadric* \fIquad\fP,
  17. .nf
  18. .ta \w'\f3void \fPgluPartialDisk( 'u
  19. GLdouble \fIinner\fP,
  20. GLdouble \fIouter\fP,
  21. GLint \fIslices\fP,
  22. GLint \fIloops\fP,
  23. GLdouble \fIstart\fP,
  24. GLdouble \fIsweep\fP )
  25. .fi
  26. .EQ
  27. delim $$
  28. .EN
  29. .SH PARAMETERS
  30. .TP \w'\fIslices\fP\ \ 'u
  31. \f2quad\fP
  32. Specifies a quadrics object (created with \%\f3gluNewQuadric\fP).
  33. .TP
  34. \f2inner\fP
  35. Specifies the inner radius of the partial disk (can be 0).
  36. .TP
  37. \f2outer\fP
  38. Specifies the outer radius of the partial disk.
  39. .TP
  40. \f2slices\fP
  41. Specifies the number of subdivisions around the \f2z\fP axis.
  42. .TP
  43. \f2loops\fP
  44. Specifies the number of concentric rings about the origin into which
  45. the partial disk is subdivided.
  46. .TP
  47. \f2start\fP
  48. Specifies the starting angle, in degrees, of the disk portion.
  49. .TP
  50. \f2sweep\fP
  51. Specifies the sweep angle, in degrees, of the disk portion.
  52. .SH DESCRIPTION
  53. \%\f3gluPartialDisk\fP renders a partial disk on the $ z ~=~ 0 $ plane. A partial disk is
  54. similar to a full disk, except that only the subset of the disk from
  55. \f2start\fP through \f2start\fP + \f2sweep\fP is included (where 0 degrees is along the
  56. +\f2y\f axis,
  57. 90 degrees along the +\f2x\fP axis, 180 degrees along the \-\f2y\fP axis, and
  58. 270 degrees along the \-\f2x\fP axis).
  59. .P
  60. The partial disk has a radius of
  61. \f2outer\fP, and contains a concentric circular hole with a radius
  62. of \f2inner\fP. If \f2inner\fP is 0, then no hole is generated. The partial disk is
  63. subdivided around the \f2z\fP axis into slices (like pizza slices), and also
  64. about the \f2z\fP axis into rings
  65. (as specified by \f2slices\fP and \f2loops\fP, respectively).
  66. .P
  67. With respect to orientation, the +\f2z\fP
  68. side of the partial disk is considered to
  69. be outside (see \%\f3gluQuadricOrientation\fP).
  70. This means that if the
  71. orientation is set to \%\f3GLU_OUTSIDE\fP, then any normals generated
  72. point along the +\f2z\fP axis. Otherwise, they point along the \-\f2z\fP
  73. axis.
  74. .P
  75. If texturing is turned on (with \%\f3gluQuadricTexture\fP), texture
  76. coordinates are generated
  77. linearly such that where $ r ~=~ "outer" $, the value at (\f2r\fP, 0, 0) is
  78. (1.0, 0.5), at (0, \f2r\fP, 0) it is (0.5, 1.0), at (\-\f2r\fP, 0, 0)
  79. it is (0.0, 0.5), and
  80. at (0, \-\f2r\fP, 0) it is (0.5, 0.0).
  81. .SH SEE ALSO
  82. \%\f3gluCylinder(3G)\fP, \%\f3gluDisk(3G)\fP, \%\f3gluNewQuadric(3G)\fP, \%\f3gluQuadricOrientation(3G)\fP,
  83. \%\f3gluQuadricTexture(3G)\fP,
  84. \%\f3gluSphere(3G)\fP