home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / AXISBOX.DAT < prev    next >
Encoding:
Text File  |  1991-09-06  |  2.8 KB  |  106 lines

  1. // Persistence of Vision Raytracer
  2. //
  3. // Include file for steiner.dat, grafbic.dat
  4. // by Alexander Enzmann
  5.  
  6. // Declare the sizes of cylinders that represent coordinate axes 
  7. #declare Axes_X_Radii = <1.0  0.01 0.01>
  8. #declare Axes_Y_Radii = <0.01 1.0  0.01>
  9. #declare Axes_Z_Radii = <0.01 0.01 1.0>
  10.  
  11. // Define the colors of the coordinate axes 
  12. #declare X_Axis_Color = color green 1 blue 1
  13. #declare Y_Axis_Color = color red 1 green 1
  14. #declare Z_Axis_Color = color red 1 blue 1
  15.  
  16. // Define the ways that the coordinate axes can be translated 
  17. #declare Translate_X_Axis_Up       = < 0.0  1.0  0.0>
  18. #declare Translate_X_Axis_Down     = < 0.0 -1.0  0.0>
  19. #declare Translate_X_Axis_Forward  = < 0.0  0.0  1.0>
  20. #declare Translate_X_Axis_Back     = < 0.0  0.0 -1.0>
  21. #declare Translate_Y_Axis_Left     = < 1.0  0.0  0.0>
  22. #declare Translate_Y_Axis_Right    = <-1.0  0.0  0.0>
  23. #declare Translate_Y_Axis_Forward  = < 0.0  0.0  1.0>
  24. #declare Translate_Y_Axis_Back     = < 0.0  0.0 -1.0>
  25. #declare Translate_Z_Axis_Up       = < 0.0  1.0  0.0>
  26. #declare Translate_Z_Axis_Down     = < 0.0 -1.0  0.0>
  27. #declare Translate_Z_Axis_Left     = < 1.0  0.0  0.0>
  28. #declare Translate_Z_Axis_Right    = <-1.0  0.0  0.0>
  29.  
  30. // Define coordinate axes 
  31. #declare Axes =
  32. composite
  33.    object
  34.    quadric Cylinder_X
  35.       scale Axes_X_Radii
  36.       texture color X_Axis_Color end_texture
  37.    end_quadric
  38.    end_object
  39.    object
  40.    quadric Cylinder_Y
  41.       scale Axes_Y_Radii
  42.       texture color Y_Axis_Color end_texture
  43.    end_quadric
  44.    end_object
  45.    object
  46.    quadric Cylinder_Z
  47.       scale Axes_Z_Radii
  48.       texture color Z_Axis_Color end_texture
  49.    end_quadric
  50.    end_object
  51. end_composite
  52.  
  53. // Translate the axis up, down, right, ...,  to form the three
  54. // planes that divide the standard octants. 
  55. #declare Axis_Box =
  56. composite
  57. object
  58.    quadric Cylinder_X
  59.       scale Axes_X_Radii
  60.       translate Translate_X_Axis_Up
  61.       texture color X_Axis_Color end_texture
  62.    end_quadric
  63. end_object
  64.  
  65. object
  66.    quadric Cylinder_X
  67.       scale Axes_X_Radii
  68.       translate Translate_X_Axis_Down
  69.       texture color X_Axis_Color end_texture
  70.    end_quadric
  71. end_object
  72.  
  73. object
  74.    quadric Cylinder_Y
  75.       scale Axes_Y_Radii
  76.       translate Translate_Y_Axis_Forward
  77.       texture color Y_Axis_Color end_texture
  78.    end_quadric
  79. end_object
  80.  
  81. object
  82.    quadric Cylinder_Y
  83.       scale Axes_Y_Radii
  84.       translate Translate_Y_Axis_Back
  85.       texture color Y_Axis_Color end_texture
  86.    end_quadric
  87. end_object
  88.  
  89. object
  90.    quadric Cylinder_Z
  91.       scale Axes_Z_Radii
  92.       translate Translate_Z_Axis_Left
  93.       texture color Z_Axis_Color end_texture
  94.    end_quadric
  95. end_object
  96.  
  97. object
  98.    quadric Cylinder_Z
  99.       scale Axes_Z_Radii
  100.       translate Translate_Z_Axis_Right
  101.       texture color Z_Axis_Color end_texture
  102.    end_quadric
  103. end_object
  104. end_composite
  105.  
  106.