home *** CD-ROM | disk | FTP | other *** search
/ Freelog 34 / Freelog034.iso / Graphisme3D / City / TEMPLATE.MCR < prev    next >
Encoding:
Text File  |  1999-02-01  |  1.0 KB  |  30 lines

  1. /*************************************************************************
  2.  CITY GENERATOR: MACRO FILE TEMPLATE
  3.  
  4.  This file includes basic examples of the macros required by the
  5.  City Generator include file, including the required parameters for each
  6.  macro.  See CTDesign.htm for more information, and City.mcr and the other
  7.  sample files packaged with the City Include File for more examples.
  8.  
  9. **************************************************************************/
  10.  
  11. #macro city_base (Corner1, Corner2)
  12.    polygon {5, Corner1, Corner1 * x + Corner2 * z, Corner2, Corner1 * z + Corner2 * x, Corner1
  13.       pigment {rgb <0, 0, 1>}}
  14. #end
  15.  
  16. #macro city_street (From, To, Direction)
  17.    cylinder {Corner1, Corner2, street_width * .1 pigment {rgb <1, 1, 0>}}
  18. #end
  19.  
  20. #macro city_pavement (Corner1, Corner2)
  21.    box {Corner1, Corner2 + y pigment {rgb <0, 1, 0>}}
  22. #end
  23.  
  24. #macro city_building (Corner1, Corner2, Direction)
  25.    box {Corner1, Corner2 + y * 10 pigment {rgb <1, 0, 0>}}
  26. #end
  27.  
  28. #macro city_finish ()
  29. #end
  30.