home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / ply15dat.zip / DEVIL.PI < prev    next >
Text File  |  1992-09-19  |  812b  |  31 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0, 5, -5>
  7.    at   <0, 0,  0>
  8.    up   <0, 1,  0>
  9.    angle 30
  10.    resolution 160, 160
  11.    }
  12.  
  13. // Get various surface finishes
  14. include "..\colors.inc"
  15.  
  16. // Set up background color & lights
  17. background black
  18. light <10, 10, -20>
  19.  
  20. // Variant of a devil's curve in 3-space.  This figure has a top and
  21. // bottom part that are very similar to a hyperboloid of one sheet,
  22. // however the central region is pinched in the middle leaving two
  23. // teardrop shaped holes.
  24. object {
  25.      object { polynomial x^4 + 2*x^2*z^2 - 0.36*x^2 - y^4 + 0.25*y^2 + z^4 }
  26.    & object { box <-2, -2, -0.5>, <2, 2, 0.5> }
  27.    bounding_box <-2, -2, -0.5>, <2, 2, 0.5>
  28.    rotate <40, 30, 0>
  29.    shiny_red
  30.    }
  31.