home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1999 March / PCShareware-3-99.iso / IMPLE / DJGPP.RAR / DJGPP2 / XLIB-APP.ZIP / TMP / ICO / POLYINFO.H < prev   
Text File  |  1988-02-26  |  808b  |  31 lines

  1. /* polyinfo.h
  2.  * This is the description of one polyhedron file
  3.  */
  4.  
  5. #define MAXVERTS 120
  6.     /* great rhombicosidodecahedron has 120 vertices */
  7. #define MAXNV MAXVERTS
  8. #define MAXFACES 30
  9.     /* (hexakis icosahedron has 120 faces) */
  10. #define MAXEDGES 180
  11.     /* great rhombicosidodecahedron has 180 edges */
  12. #define MAXEDGESPERPOLY 20
  13.  
  14. typedef struct {
  15.     double x, y, z;
  16. } Point3D;
  17.  
  18. /* structure of the include files which define the polyhedra */
  19. typedef struct {
  20.     char *longname;        /* long name of object */
  21.     char *shortname;    /* short name of object */
  22.     char *dual;        /* long name of dual */
  23.     int numverts;        /* number of vertices */
  24.     int numedges;        /* number of edges */
  25.     int numfaces;        /* number of faces */
  26.     Point3D v[MAXVERTS];    /* the vertices */
  27.     int f[MAXEDGES*2+MAXFACES];    /* the faces */
  28. } Polyinfo;
  29.  
  30. /* end */
  31.