diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-25 20:21:41 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-25 20:21:41 +0000 |
commit | 78d9ac52db47a21e2260ec82b6666ca014fc4c68 (patch) | |
tree | 7c513579fdb4dd2340d5ffe8e72f560467c74037 /app/ico/objcube.h | |
parent | 4009f4bb8e19be65985224de572a56c7e547ff62 (diff) |
Importing from X.Org 7.2RC2
Diffstat (limited to 'app/ico/objcube.h')
-rw-r--r-- | app/ico/objcube.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/ico/objcube.h b/app/ico/objcube.h new file mode 100644 index 000000000..441145eda --- /dev/null +++ b/app/ico/objcube.h @@ -0,0 +1,29 @@ +/* objcube.h - structure values for cube */ + +{ "cube", "cube", /* long and short names */ + "octahedron", /* long name of dual */ + 8, 12, 6, /* number of vertices, edges, and faces */ + { /* vertices (x,y,z) */ + /* all points must be within radius 1 of the origin */ +#define T 0.577 + { T, T, T }, + { T, T, -T }, + { T, -T, -T }, + { T, -T, T }, + { -T, T, T }, + { -T, T, -T }, + { -T, -T, -T }, + { -T, -T, T }, +#undef T + }, + { /* faces (numfaces + indexes into vertices) */ + /* faces must be specified clockwise from the outside */ + 4, 0, 1, 2, 3, + 4, 7, 6, 5, 4, + 4, 1, 0, 4, 5, + 4, 3, 2, 6, 7, + 4, 2, 1, 5, 6, + 4, 0, 3, 7, 4, + } +}, /* leave a comma to separate from the next include file */ +/* end */ |