1/* objpyr.h - structure values for pyramid */ 2 3{ "pyramid", "pyramid", /* long and short names */ 4 "cube", /* long name of dual */ 5 5, 8, 5, /* 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 1.0 9 { T, 0, 0 }, 10 { -T, 0, 0 }, 11 { 0, T, 0 }, 12 { 0, -T, 0 }, 13 { 0, 0, T }, 14 /* { 0, 0, -T }, */ 15#undef T 16 }, 17 { /* faces (numfaces + indexes into vertices) */ 18 /* faces must be specified clockwise from the outside */ 19 3, 0, 4, 2, 20 /* 3, 0, 2, 5, */ 21 /* 3, 0, 5, 3, */ 22 3, 0, 3, 4, 23 3, 1, 2, 4, 24 /* 3, 1, 5, 2, */ 25 /* 3, 1, 3, 5, */ 26 3, 1, 4, 3, 27 4, 0, 2, 1, 3, 28 } 29}, /* leave a comma to separate from the next include file */ 30/* end */ 31