home *** CD-ROM | disk | FTP | other *** search
/ The 3rd Dimension / TheThirdDimension.iso / data / poly.x < prev    next >
Text File  |  1996-06-18  |  6KB  |  283 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.  0.000000;1.500000;1.500000;,
  137.  1.500000;0.000000;1.500000;,
  138.  0.000000;-1.500000;1.500000;,
  139.  -1.500000;0.000000;1.500000;,
  140.  -1.500000;1.500000;0.000000;,
  141.  0.000000;1.500000;-1.500000;,
  142.  1.500000;1.500000;0.000000;,
  143.  1.500000;-1.500000;0.000000;,
  144.  1.500000;0.000000;-1.500000;,
  145.  -1.500000;0.000000;-1.500000;,
  146.  0.000000;-1.500000;-1.500000;,
  147.  -1.500000;-1.500000;0.000000;;
  148.  
  149.  20;
  150.  3;0,1,6;,
  151.  3;1,2,7;,
  152.  3;2,3,11;,
  153.  3;3,0,4;,
  154.  3;4,5,9;,
  155.  3;5,6,8;,
  156.  3;8,7,10;,
  157.  3;9,10,11;,
  158.  3;1,3,2;,
  159.  3;1,0,3;,
  160.  3;4,6,5;,
  161.  3;4,0,6;,
  162.  3;6,7,8;,
  163.  3;6,1,7;,
  164.  3;5,10,9;,
  165.  3;5,8,10;,
  166.  3;10,2,11;,
  167.  3;10,7,2;,
  168.  3;9,3,4;,
  169.  3;9,11,3;;
  170.  
  171.  MeshMaterialList {
  172.   1;
  173.   1;
  174.   0;;
  175.   Material {
  176.    0.000000;1.000000;0.000000;1.000000;;
  177.    27.200001;
  178.    0.819608;0.819608;0.819608;;
  179.    0.000000;0.000000;0.000000;;
  180.   }
  181.  }
  182.  MeshNormals {
  183.   60;
  184.   0.577350;0.577350;0.577350;,
  185.   -0.577350;0.577350;0.577350;,
  186.   0.000000;0.000000;1.000000;,
  187.   0.000000;1.000000;0.000000;,
  188.   0.577350;0.577350;0.577350;,
  189.   0.577350;-0.577350;0.577350;,
  190.   0.000000;0.000000;1.000000;,
  191.   0.000000;0.000000;1.000000;,
  192.   1.000000;0.000000;0.000000;,
  193.   0.577350;-0.577350;0.577350;,
  194.   -0.577350;-0.577350;0.577350;,
  195.   0.000000;0.000000;1.000000;,
  196.   0.000000;-1.000000;0.000000;,
  197.   0.000000;-1.000000;0.000000;,
  198.   -0.577350;-0.577350;0.577350;,
  199.   -0.577350;0.577350;0.577350;,
  200.   0.000000;0.000000;1.000000;,
  201.   0.000000;0.000000;1.000000;,
  202.   -1.000000;0.000000;0.000000;,
  203.   -1.000000;0.000000;0.000000;,
  204.   -0.577350;0.577350;0.577350;,
  205.   -0.577350;0.577350;-0.577350;,
  206.   0.000000;1.000000;0.000000;,
  207.   0.000000;1.000000;0.000000;,
  208.   -1.000000;0.000000;0.000000;,
  209.   -0.577350;0.577350;-0.577350;,
  210.   0.577350;0.577350;-0.577350;,
  211.   0.000000;1.000000;0.000000;,
  212.   0.000000;0.000000;-1.000000;,
  213.   0.000000;0.000000;-1.000000;,
  214.   0.577350;0.577350;0.577350;,
  215.   0.577350;0.577350;-0.577350;,
  216.   0.000000;1.000000;0.000000;,
  217.   0.000000;1.000000;0.000000;,
  218.   1.000000;0.000000;0.000000;,
  219.   1.000000;0.000000;0.000000;,
  220.   0.577350;-0.577350;0.577350;,
  221.   0.577350;-0.577350;-0.577350;,
  222.   1.000000;0.000000;0.000000;,
  223.   1.000000;0.000000;0.000000;,
  224.   0.000000;-1.000000;0.000000;,
  225.   0.577350;0.577350;-0.577350;,
  226.   0.577350;-0.577350;-0.577350;,
  227.   1.000000;0.000000;0.000000;,
  228.   0.000000;0.000000;-1.000000;,
  229.   -0.577350;0.577350;-0.577350;,
  230.   -0.577350;-0.577350;-0.577350;,
  231.   0.000000;0.000000;-1.000000;,
  232.   -1.000000;0.000000;0.000000;,
  233.   -1.000000;0.000000;0.000000;,
  234.   0.577350;-0.577350;-0.577350;,
  235.   -0.577350;-0.577350;-0.577350;,
  236.   0.000000;0.000000;-1.000000;,
  237.   0.000000;0.000000;-1.000000;,
  238.   0.000000;-1.000000;0.000000;,
  239.   0.000000;-1.000000;0.000000;,
  240.   -0.577350;-0.577350;0.577350;,
  241.   -0.577350;-0.577350;-0.577350;,
  242.   0.000000;-1.000000;0.000000;,
  243.   -1.000000;0.000000;0.000000;;
  244.  
  245.   20;
  246.   3;0,4,30;,
  247.   3;5,9,36;,
  248.   3;10,14,56;,
  249.   3;15,1,20;,
  250.   3;21,25,45;,
  251.   3;26,31,41;,
  252.   3;42,37,50;,
  253.   3;46,51,57;,
  254.   3;6,16,11;,
  255.   3;7,2,17;,
  256.   3;22,32,27;,
  257.   3;23,3,33;,
  258.   3;34,38,43;,
  259.   3;35,8,39;,
  260.   3;28,52,47;,
  261.   3;29,44,53;,
  262.   3;54,12,58;,
  263.   3;55,40,13;,
  264.   3;48,18,24;,
  265.   3;49,59,19;;
  266.  }
  267.  MeshTextureCoords {
  268.   12;
  269.   0.000000;0.000000;,
  270.   0.000000;0.000000;,
  271.   0.000000;0.000000;,
  272.   0.000000;0.000000;,
  273.   0.000000;0.000000;,
  274.   0.000000;0.000000;,
  275.   0.000000;0.000000;,
  276.   0.000000;0.000000;,
  277.   0.000000;0.000000;,
  278.   0.000000;0.000000;,
  279.   0.000000;0.000000;,
  280.   0.000000;0.000000;;
  281.  }
  282. }
  283.