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