objcube.h revision 1fb077a1
1/* objcube.h - structure values for cube */ 2 3{ "cube", "cube", /* long and short names */ 4 "octahedron", /* long name of dual */ 5 8, 12, 6, /* number of vertices, edges, and faces */ 6 { /* vertices (x,y,z) */ 7 /* all points must be within radius 1 of the origin */ 8#define T 0.577 9 { T, T, T }, 10 { T, T, -T }, 11 { T, -T, -T }, 12 { T, -T, T }, 13 { -T, T, T }, 14 { -T, T, -T }, 15 { -T, -T, -T }, 16 { -T, -T, T }, 17#undef T 18 }, 19 { /* faces (numfaces + indexes into vertices) */ 20 /* faces must be specified clockwise from the outside */ 21 4, 0, 1, 2, 3, 22 4, 7, 6, 5, 4, 23 4, 1, 0, 4, 5, 24 4, 3, 2, 6, 7, 25 4, 2, 1, 5, 6, 26 4, 0, 3, 7, 4, 27 } 28}, /* leave a comma to separate from the next include file */ 29/* end */ 30