home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 2555 / povhlp / torus.hlp < prev    next >
Encoding:
Text File  |  1994-07-04  |  1.6 KB  |  27 lines

  1.     A torus is a 4th order quartic polynomial shape that looks like a donut
  2.  or inner tube.  Because this shape is so useful and quartics are difficult
  3.  to define, POV-Ray lets you take a short-cut and define a torus by:
  4.       torus { MAJOR, MINOR }
  5.  where MAJOR is a float value giving the major radius and MINOR is another
  6.  float specifying the minor radius.  The major radius extends from the center
  7.  of the hole to the mid-line of the rim while the minor radius is the radius
  8.  of the cross-section of the rim.  The torus is centered at the origin and
  9.  lies in the X-Z plane with the Y-axis sticking through the hole.
  10.           ----------- - - - - - - - ----------            +Y
  11.          /          \              /          \            |
  12.         /            \            /            \           |
  13.        |              |          |       |<-B-->|     -X---|---+X
  14.         \            /            \            /           |
  15.          \__________/_ _ _ _ _ _ _ \__________/            |
  16.                            |<----A----->|                 -Y
  17.        A = Major Radius
  18.        B = Minor Radius
  19.  
  20.     Internally the torus is computed the same as any other quartic or 4th
  21.  order polynomial however a torus defined this way will respond to automatic
  22.  bounding while a quartic must be manually bound if at all.  As with all sha-
  23.  pes, a torus can be translated, rotated and scaled.  Calculations for all
  24.  higher order polynomials must be very accurate.  If this shape renders im-
  25.  properly you may add the keyword 'sturm' after the MINOR value to use POV-
  26.  Ray's slower-yet-more-accurate Sturmian root solver.
  27.