home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / demos / ico / polyinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  898 b   |  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 _Point3D { /* POHC 90/10/09 */
  15.     double x, y, z;
  16. } Point3D;
  17.  
  18. /* structure of the include files which define the polyhedra */
  19. typedef struct _Polyinfo { /* POHC 90/10/09 */
  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.