11fb077a1Smrg/* objcube.h - structure values for cube */ 21fb077a1Smrg 31fb077a1Smrg{ "cube", "cube", /* long and short names */ 41fb077a1Smrg "octahedron", /* long name of dual */ 51fb077a1Smrg 8, 12, 6, /* number of vertices, edges, and faces */ 61fb077a1Smrg { /* vertices (x,y,z) */ 71fb077a1Smrg /* all points must be within radius 1 of the origin */ 81fb077a1Smrg#define T 0.577 91fb077a1Smrg { T, T, T }, 101fb077a1Smrg { T, T, -T }, 111fb077a1Smrg { T, -T, -T }, 121fb077a1Smrg { T, -T, T }, 131fb077a1Smrg { -T, T, T }, 141fb077a1Smrg { -T, T, -T }, 151fb077a1Smrg { -T, -T, -T }, 161fb077a1Smrg { -T, -T, T }, 171fb077a1Smrg#undef T 181fb077a1Smrg }, 191fb077a1Smrg { /* faces (numfaces + indexes into vertices) */ 201fb077a1Smrg /* faces must be specified clockwise from the outside */ 211fb077a1Smrg 4, 0, 1, 2, 3, 221fb077a1Smrg 4, 7, 6, 5, 4, 231fb077a1Smrg 4, 1, 0, 4, 5, 241fb077a1Smrg 4, 3, 2, 6, 7, 251fb077a1Smrg 4, 2, 1, 5, 6, 261fb077a1Smrg 4, 0, 3, 7, 4, 271fb077a1Smrg } 281fb077a1Smrg}, /* leave a comma to separate from the next include file */ 291fb077a1Smrg/* end */ 30