summaryrefslogtreecommitdiff
path: root/app/ico/objpyr.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-25 20:21:41 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-25 20:21:41 +0000
commit78d9ac52db47a21e2260ec82b6666ca014fc4c68 (patch)
tree7c513579fdb4dd2340d5ffe8e72f560467c74037 /app/ico/objpyr.h
parent4009f4bb8e19be65985224de572a56c7e547ff62 (diff)
Importing from X.Org 7.2RC2
Diffstat (limited to 'app/ico/objpyr.h')
-rw-r--r--app/ico/objpyr.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/ico/objpyr.h b/app/ico/objpyr.h
new file mode 100644
index 000000000..5ea163e1e
--- /dev/null
+++ b/app/ico/objpyr.h
@@ -0,0 +1,30 @@
+/* objpyr.h - structure values for pyramid */
+
+{ "pyramid", "pyramid", /* long and short names */
+ "cube", /* long name of dual */
+ 5, 8, 5, /* number of vertices, edges, and faces */
+ { /* vertices (x,y,z) */
+ /* all points must be within radius 1 of the origin */
+#define T 1.0
+ { T, 0, 0 },
+ { -T, 0, 0 },
+ { 0, T, 0 },
+ { 0, -T, 0 },
+ { 0, 0, T },
+ /* { 0, 0, -T }, */
+#undef T
+ },
+ { /* faces (numfaces + indexes into vertices) */
+ /* faces must be specified clockwise from the outside */
+ 3, 0, 4, 2,
+ /* 3, 0, 2, 5, */
+ /* 3, 0, 5, 3, */
+ 3, 0, 3, 4,
+ 3, 1, 2, 4,
+ /* 3, 1, 5, 2, */
+ /* 3, 1, 3, 5, */
+ 3, 1, 4, 3,
+ 4, 0, 2, 1, 3,
+ }
+}, /* leave a comma to separate from the next include file */
+/* end */