objpyr.h 1.1 KB

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