summaryrefslogtreecommitdiff
path: root/polyinfo.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:57 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:57 +0000
commit352df17fc71405e7bc36559ee8a72e21d7a5694a (patch)
tree34441fb7cf5bda1b968d4993924eaef0aa42dab7 /polyinfo.h
Initial revisionXORG-STABLE
Diffstat (limited to 'polyinfo.h')
-rw-r--r--polyinfo.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/polyinfo.h b/polyinfo.h
new file mode 100644
index 0000000..cc79271
--- /dev/null
+++ b/polyinfo.h
@@ -0,0 +1,31 @@
+/* polyinfo.h
+ * This is the description of one polyhedron file
+ */
+/* $XFree86: xc/programs/ico/polyinfo.h,v 1.3 2000/02/17 14:00:32 dawes Exp $ */
+
+#define MAXVERTS 120
+ /* great rhombicosidodecahedron has 120 vertices */
+#define MAXNV MAXVERTS
+#define MAXFACES 30
+ /* (hexakis icosahedron has 120 faces) */
+#define MAXEDGES 180
+ /* great rhombicosidodecahedron has 180 edges */
+#define MAXEDGESPERPOLY 20
+
+typedef struct {
+ double x, y, z;
+} Point3D;
+
+/* structure of the include files which define the polyhedra */
+typedef struct {
+ const char *longname; /* long name of object */
+ const char *shortname; /* short name of object */
+ const char *dual; /* long name of dual */
+ int numverts; /* number of vertices */
+ int numedges; /* number of edges */
+ int numfaces; /* number of faces */
+ Point3D v[MAXVERTS]; /* the vertices */
+ int f[MAXEDGES*2+MAXFACES]; /* the faces */
+} Polyinfo;
+
+/* end */