home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray3a / POV3Demo / Objects / pov / Prism3A < prev    next >
Text File  |  1996-03-01  |  1KB  |  46 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2.  
  3. #version 3.0
  4. global_settings { assumed_gamma 2.2 }
  5.  
  6. #include "prism3.inc"
  7.  
  8. #declare Prism = prism {
  9.   linear_spline
  10.   0.0,
  11.   1.0,
  12.   25,
  13.   <-1.000000, -1.000000>,  // Outer polygon
  14.   <1.000000, -1.000000>, 
  15.   <0.228311, 0.228311>, 
  16.   <-0.228311, 0.228311>, 
  17.   <-1.000000, -1.000000>
  18.   <-0.228311, -0.456621>,  // 1st inner square
  19.   <0.228311, -0.456621>, 
  20.   <0.228311, 0.000000>, 
  21.   <-0.228311, 0.000000>, 
  22.   <-0.228311, -0.456621>
  23.   <-0.479452, -0.730594>,  // 2nd inner square
  24.   <-0.022831, -0.730594>, 
  25.   <-0.022831, -0.273973>, 
  26.   <-0.479452, -0.273973>, 
  27.   <-0.479452, -0.730594>
  28.   <0.027397, -0.730594>,   // 3rd inner square
  29.   <0.484018, -0.730594>, 
  30.   <0.484018, -0.273973>, 
  31.   <0.027397, -0.273973>, 
  32.   <0.027397, -0.730594>
  33.   <-0.228311, -0.958904>,  // 4th inner square
  34.   <0.228311, -0.958904>, 
  35.   <0.228311, -0.502283>, 
  36.   <-0.228311, -0.502283>, 
  37.   <-0.228311, -0.958904>
  38. }
  39.  
  40. object { Prism
  41.   pigment { color rgb<1, 0.2, 0.2> } 
  42.   scale <2, 0.2, 2> 
  43.   translate 0.614*z
  44. }
  45.  
  46.