polyinfo.h revision a5a92c01
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 14typedef struct { 15 double x, y, z; 16} Point3D; 17 18/* structure of the include files which define the polyhedra */ 19typedef struct { 20 const char *longname; /* long name of object */ 21 const char *shortname; /* short name of object */ 22 const 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