home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / ico / objtetra.h < prev    next >
Text File  |  1988-03-14  |  712b  |  30 lines

  1. /* objtetra.h - structure values for tetrahedron */
  2.  
  3. {    "tetrahedron", "tetra",    /* long and short names */
  4.     "cube",        /* long name of dual */
  5.     6, 12, 8,    /* number of vertices, edges, and faces */
  6.     {        /* vertices (x,y,z) */
  7.             /* all points must be within radius 1 of the origin */
  8. #define T 1.0
  9.         {  T,  0,  0 },
  10.         { -T,  0,  0 },
  11.         {  0,  T,  0 },
  12.         {  0, -T,  0 },
  13.         {  0,  0,  T },
  14.         {  0,  0, -T },
  15. #undef T
  16.     },
  17.     {    /* faces (numfaces + indexes into vertices) */
  18.         /*  faces must be specified clockwise from the outside */
  19.         3,    0, 4, 2,
  20.         3,    0, 2, 5,
  21.         3,    0, 5, 3,
  22.         3,    0, 3, 4,
  23.         3,    1, 2, 4,
  24.         3,    1, 5, 2,
  25.         3,    1, 3, 5,
  26.         3,    1, 4, 3,
  27.     }
  28. },        /* leave a comma to separate from the next include file */
  29. /* end */
  30.