home *** CD-ROM | disk | FTP | other *** search
/ The 3rd Dimension / TheThirdDimension.iso / data / 72tri.x < prev    next >
Text File  |  1996-06-14  |  5KB  |  267 lines

  1. xof 0302txt 0064
  2. template Header {
  3.  <3D82AB43-62DA-11cf-AB39-0020AF71E433>
  4.  WORD major;
  5.  WORD minor;
  6.  DWORD flags;
  7. }
  8.  
  9. template Vector {
  10.  <3D82AB5E-62DA-11cf-AB39-0020AF71E433>
  11.  FLOAT x;
  12.  FLOAT y;
  13.  FLOAT z;
  14. }
  15.  
  16. template Coords2d {
  17.  <F6F23F44-7686-11cf-8F52-0040333594A3>
  18.  FLOAT u;
  19.  FLOAT v;
  20. }
  21.  
  22. template Matrix4x4 {
  23.  <F6F23F45-7686-11cf-8F52-0040333594A3>
  24.  array FLOAT matrix[16];
  25. }
  26.  
  27. template ColorRGBA {
  28.  <35FF44E0-6C7C-11cf-8F52-0040333594A3>
  29.  FLOAT red;
  30.  FLOAT green;
  31.  FLOAT blue;
  32.  FLOAT alpha;
  33. }
  34.  
  35. template ColorRGB {
  36.  <D3E16E81-7835-11cf-8F52-0040333594A3>
  37.  FLOAT red;
  38.  FLOAT green;
  39.  FLOAT blue;
  40. }
  41.  
  42. template IndexedColor {
  43.  <1630B820-7842-11cf-8F52-0040333594A3>
  44.  DWORD index;
  45.  ColorRGBA indexColor;
  46. }
  47.  
  48. template Boolean {
  49.  <4885AE61-78E8-11cf-8F52-0040333594A3>
  50.  WORD truefalse;
  51. }
  52.  
  53. template Boolean2d {
  54.  <4885AE63-78E8-11cf-8F52-0040333594A3>
  55.  Boolean u;
  56.  Boolean v;
  57. }
  58.  
  59. template MaterialWrap {
  60.  <4885AE60-78E8-11cf-8F52-0040333594A3>
  61.  Boolean u;
  62.  Boolean v;
  63. }
  64.  
  65. template TextureFilename {
  66.  <A42790E1-7810-11cf-8F52-0040333594A3>
  67.  STRING filename;
  68. }
  69.  
  70. template Material {
  71.  <3D82AB4D-62DA-11cf-AB39-0020AF71E433>
  72.  ColorRGBA faceColor;
  73.  FLOAT power;
  74.  ColorRGB specularColor;
  75.  ColorRGB emissiveColor;
  76.  [...]
  77. }
  78.  
  79. template MeshFace {
  80.  <3D82AB5F-62DA-11cf-AB39-0020AF71E433>
  81.  DWORD nFaceVertexIndices;
  82.  array DWORD faceVertexIndices[nFaceVertexIndices];
  83. }
  84.  
  85. template MeshFaceWraps {
  86.  <4885AE62-78E8-11cf-8F52-0040333594A3>
  87.  DWORD nFaceWrapValues;
  88.  Boolean2d faceWrapValues;
  89. }
  90.  
  91. template MeshTextureCoords {
  92.  <F6F23F40-7686-11cf-8F52-0040333594A3>
  93.  DWORD nTextureCoords;
  94.  array Coords2d textureCoords[nTextureCoords];
  95. }
  96.  
  97. template MeshMaterialList {
  98.  <F6F23F42-7686-11cf-8F52-0040333594A3>
  99.  DWORD nMaterials;
  100.  DWORD nFaceIndexes;
  101.  array DWORD faceIndexes[nFaceIndexes];
  102.  [Material]
  103. }
  104.  
  105. template MeshNormals {
  106.  <F6F23F43-7686-11cf-8F52-0040333594A3>
  107.  DWORD nNormals;
  108.  array Vector normals[nNormals];
  109.  DWORD nFaceNormals;
  110.  array MeshFace faceNormals[nFaceNormals];
  111. }
  112.  
  113. template MeshVertexColors {
  114.  <1630B821-7842-11cf-8F52-0040333594A3>
  115.  DWORD nVertexColors;
  116.  array IndexedColor vertexColors[nVertexColors];
  117. }
  118.  
  119. template Mesh {
  120.  <3D82AB44-62DA-11cf-AB39-0020AF71E433>
  121.  DWORD nVertices;
  122.  array Vector vertices[nVertices];
  123.  DWORD nFaces;
  124.  array MeshFace faces[nFaces];
  125.  [...]
  126. }
  127.  
  128. Header {
  129.  1;
  130.  0;
  131.  1;
  132. }
  133.  
  134. Mesh {
  135.  12;
  136.  -3.000000;-2.598076;-0.921877;,
  137.  3.000000;-2.598077;-0.921878;,
  138.  -3.000000;-2.598076;0.921878;,
  139.  3.000000;-2.598077;0.921878;,
  140.  0.000001;2.598077;-0.921878;,
  141.  0.000001;2.598077;0.921877;,
  142.  -1.910203;-2.005221;-0.921878;,
  143.  1.974797;-2.005222;-0.921878;,
  144.  0.032297;1.359288;-0.921878;,
  145.  -1.910203;-2.005221;0.921878;,
  146.  1.974797;-2.005222;0.921878;,
  147.  0.032297;1.359287;0.921877;;
  148.  
  149.  24;
  150.  3;1,2,0;,
  151.  3;1,3,2;,
  152.  3;0,5,4;,
  153.  3;0,2,5;,
  154.  3;4,3,1;,
  155.  3;4,5,3;,
  156.  3;0,7,1;,
  157.  3;4,6,0;,
  158.  3;0,6,7;,
  159.  3;1,7,4;,
  160.  3;4,8,6;,
  161.  3;7,8,4;,
  162.  3;2,9,5;,
  163.  3;3,9,2;,
  164.  3;3,10,9;,
  165.  3;5,10,3;,
  166.  3;5,9,11;,
  167.  3;5,11,10;,
  168.  3;9,7,6;,
  169.  3;7,9,10;,
  170.  3;10,8,7;,
  171.  3;8,11,6;,
  172.  3;6,11,9;,
  173.  3;8,10,11;;
  174.  
  175.  MeshMaterialList {
  176.   1;
  177.   1;
  178.   0;;
  179.   Material {
  180.    1.000000;1.000000;1.000000;1.000000;;
  181.    0.000000;
  182.    0.000000;0.000000;0.000000;;
  183.    0.000000;0.000000;0.000000;;
  184.   }
  185.  }
  186.  MeshNormals {
  187.   36;
  188.   -0.000000;-1.000000;0.000000;,
  189.   -0.866025;0.500000;-0.000000;,
  190.   -0.000000;-0.000000;-1.000000;,
  191.   -0.000000;-1.000000;0.000000;,
  192.   0.866025;0.500000;0.000000;,
  193.   -0.000000;-0.000000;-1.000000;,
  194.   -0.000000;-1.000000;0.000000;,
  195.   -0.866025;0.500000;0.000000;,
  196.   0.000000;0.000000;1.000000;,
  197.   -0.000000;-1.000000;0.000000;,
  198.   0.866025;0.500000;0.000000;,
  199.   0.000000;0.000000;1.000000;,
  200.   -0.866025;0.500000;-0.000000;,
  201.   0.866025;0.500000;0.000000;,
  202.   -0.000000;-0.000000;-1.000000;,
  203.   -0.866025;0.500000;-0.000000;,
  204.   0.866026;0.500000;0.000000;,
  205.   0.000000;0.000000;1.000000;,
  206.   -0.000000;-0.000000;-1.000000;,
  207.   0.000000;1.000000;0.000000;,
  208.   0.866025;-0.500000;-0.000000;,
  209.   -0.000000;-0.000000;-1.000000;,
  210.   0.000000;1.000000;0.000000;,
  211.   -0.866025;-0.500000;0.000000;,
  212.   -0.000000;-0.000000;-1.000000;,
  213.   -0.866025;-0.500000;0.000000;,
  214.   0.866025;-0.500000;-0.000000;,
  215.   0.000000;0.000000;1.000000;,
  216.   0.000000;1.000000;0.000000;,
  217.   0.866025;-0.500000;0.000000;,
  218.   0.000000;0.000000;1.000000;,
  219.   0.000000;1.000000;0.000000;,
  220.   -0.866025;-0.500000;0.000000;,
  221.   0.000000;0.000000;1.000000;,
  222.   0.866025;-0.500000;-0.000000;,
  223.   -0.866025;-0.500000;-0.000000;;
  224.  
  225.   24;
  226.   3;3,6,0;,
  227.   3;3,9,6;,
  228.   3;1,15,12;,
  229.   3;1,7,15;,
  230.   3;13,10,4;,
  231.   3;13,16,10;,
  232.   3;2,21,5;,
  233.   3;14,18,2;,
  234.   3;2,18,21;,
  235.   3;5,21,14;,
  236.   3;14,24,18;,
  237.   3;21,24,14;,
  238.   3;8,27,17;,
  239.   3;11,27,8;,
  240.   3;11,30,27;,
  241.   3;17,30,11;,
  242.   3;17,27,33;,
  243.   3;17,33,30;,
  244.   3;28,22,19;,
  245.   3;22,28,31;,
  246.   3;32,25,23;,
  247.   3;26,34,20;,
  248.   3;20,34,29;,
  249.   3;25,32,35;;
  250.  }
  251.  MeshTextureCoords {
  252.   12;
  253.   0.000000;0.000000;,
  254.   0.000000;0.000000;,
  255.   0.000000;0.000000;,
  256.   0.000000;0.000000;,
  257.   0.000000;0.000000;,
  258.   0.000000;0.000000;,
  259.   0.000000;0.000000;,
  260.   0.000000;0.000000;,
  261.   0.000000;0.000000;,
  262.   0.000000;0.000000;,
  263.   0.000000;0.000000;,
  264.   0.000000;0.000000;;
  265.  }
  266. }
  267.