clipplane.3gl 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. '\" e
  2. '\"! eqn | mmdoc
  3. '\"macro stdmacro
  4. .ds Vn Version 1.2
  5. .ds Dt 24 September 1999
  6. .ds Re Release 1.2.1
  7. .ds Dp Jan 14 18:30
  8. .ds Dm 01 clipplane
  9. .ds Xs 34226 5 clipplane.gl
  10. .TH GLCLIPPLANE 3G
  11. .SH NAME
  12. .B "glClipPlane
  13. \- specify a plane against which all geometry is clipped
  14. .SH C SPECIFICATION
  15. void \f3glClipPlane\fP(
  16. GLenum \fIplane\fP,
  17. .nf
  18. .ta \w'\f3void \fPglClipPlane( 'u
  19. const GLdouble \fI*equation\fP )
  20. .fi
  21. .EQ
  22. delim $$
  23. .EN
  24. .SH PARAMETERS
  25. .TP \w'\fIequation\fP\ \ 'u
  26. \f2plane\fP
  27. Specifies which clipping plane is being positioned.
  28. Symbolic names of the form \%\f3GL_CLIP_PLANE\fP\f2i\fP,
  29. where \f2i\fP is an integer between 0 and \%\f3GL_MAX_CLIP_PLANES\fP$^-^1$,
  30. are accepted.
  31. .TP
  32. \f2equation\fP
  33. Specifies the address of an array of four double-precision floating-point values.
  34. These values are interpreted as a plane equation.
  35. .SH DESCRIPTION
  36. Geometry is always clipped against the boundaries of a six-plane frustum
  37. in \f2x\fP, \f2y\fP, and \f2z\fP.
  38. \%\f3glClipPlane\fP allows the specification of additional planes,
  39. not necessarily perpendicular to the \f2x\fP, \f2y\fP, or \f2z\fP axis,
  40. against which all geometry is clipped.
  41. To determine the maximum number of additional clipping planes, call
  42. \%\f3glGetIntegerv\fP with argument \%\f3GL_MAX_CLIP_PLANES\fP. All
  43. implementations support at least six such clipping planes.
  44. Because the resulting clipping region is the intersection
  45. of the defined half-spaces,
  46. it is always convex.
  47. .P
  48. \%\f3glClipPlane\fP specifies a half-space using a four-component plane equation.
  49. When \%\f3glClipPlane\fP is called,
  50. \f2equation\fP is transformed by the inverse of the modelview matrix
  51. and stored in the resulting eye coordinates.
  52. Subsequent changes to the modelview matrix have no effect on the
  53. stored plane-equation components.
  54. If the dot product of the eye coordinates of a vertex with the
  55. stored plane equation components is positive or zero,
  56. the vertex is \f2in\f1 with respect to that clipping plane.
  57. Otherwise, it is \f2out\fP.
  58. .P
  59. To enable and disable clipping planes, call
  60. \%\f3glEnable\fP and \%\f3glDisable\fP with the argument
  61. \%\f3GL_CLIP_PLANE\fP\f2i\fP,
  62. where \f2i\fP is the plane number.
  63. .P
  64. All clipping planes are initially defined as (0, 0, 0, 0) in eye coordinates
  65. and are disabled.
  66. .SH NOTES
  67. It is always the case that \%\f3GL_CLIP_PLANE\fP$i$ = \%\f3GL_CLIP_PLANE0\fP$~+~i$.
  68. .SH ERRORS
  69. \%\f3GL_INVALID_ENUM\fP is generated if \f2plane\fP is not an accepted value.
  70. .P
  71. \%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glClipPlane\fP
  72. is executed between the execution of \%\f3glBegin\fP
  73. and the corresponding execution of \%\f3glEnd\fP.
  74. .SH ASSOCIATED GETS
  75. \%\f3glGetClipPlane\fP
  76. .br
  77. \%\f3glIsEnabled\fP with argument \%\f3GL_CLIP_PLANE\fP\f2i\fP
  78. .SH SEE ALSO
  79. \%\f3glEnable(3G)\fP