home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / objects / tri.geo < prev    next >
Encoding:
Text File  |  1991-02-13  |  1001 b   |  81 lines

  1.  
  2. %-----------------------------------------------------------------------
  3. |    Sample File tri.geo
  4. |    Defines a triangle3 hollow cube
  5. |
  6. |    That is tranformed by the contents of Matrix entry 20
  7. |
  8. |    Sample BIF Geometry File
  9. -----------------------------------------------------------------------%
  10.  
  11. begin_structure 20;
  12.  
  13. apply_to_global3 20;
  14.  
  15. triangle3
  16.      1  1  1
  17.     -1  1  1
  18.      1  1 -1
  19.     -1  1 -1
  20.      1 -1 -1
  21.     -1 -1 -1
  22.      1 -1  1
  23.     -1 -1  1
  24.      1  1  1
  25.     -1  1  1
  26.  
  27.     facet_normals
  28.     {
  29.          0  1  0
  30.          0  1  0
  31.          0  0 -1
  32.          0  0 -1
  33.          0 -1  0
  34.          0 -1  0
  35.          0  0  1
  36.          0  0  1
  37.     }
  38.  
  39.     facet_colors
  40.     {
  41.         0.7 0.7 0.7
  42.         1.0 0.0 0.0
  43.         0.0 1.0 0.0
  44.         0.0 0.0 1.0
  45.         1.0 1.0 0.0
  46.         1.0 0.0 1.0
  47.         0.0 1.0 1.0
  48.         1.0 1.0 1.0
  49.     }
  50.     vertex_colors
  51.     {
  52.         0.7 0.7 0.7
  53.         1.0 0.0 0.0
  54.         0.0 1.0 0.0
  55.         0.0 0.0 1.0
  56.         1.0 1.0 0.0
  57.         1.0 0.0 1.0
  58.         0.0 1.0 1.0
  59.         1.0 1.0 1.0
  60.         1.0 0.5 0.0
  61.         1.0 0.0 0.5
  62.     }
  63.  
  64.     vertex_normals
  65.     {
  66.          1  1  1
  67.         -1  1  1
  68.          1  1 -1
  69.         -1  1 -1
  70.          1 -1 -1
  71.         -1 -1 -1
  72.          1 -1  1
  73.         -1 -1  1
  74.          1  1  1
  75.         -1  1  1
  76.     }
  77. ;
  78.  
  79. end_structure ;
  80.  
  81.