home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / simple / csg2.pi < prev    next >
Text File  |  1994-12-31  |  544b  |  27 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0,2,-6>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 30
  10.    resolution 160, 120
  11.    aspect 4/3
  12.    }
  13.  
  14. background white
  15. light <-20, 3, -20>
  16. include "../colors.inc"
  17.  
  18. define cylinder_z object { cylinder <0, 0, -5>, <0, 0, 5>, 0.5 }
  19. define unit_sphere object { sphere <0, 0, 0>, 1 }
  20.  
  21. // Define a CSG shape by deleting a cylinder from a sphere
  22. object {
  23.    unit_sphere - cylinder_z
  24.    shiny_red
  25.    rotate <0,-10, 0>
  26.    }
  27.