summaryrefslogtreecommitdiff
path: root/app/ico/objpyr.h
blob: 5ea163e1e18dbdd7e20fe394e059ff1f19d3c2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* objpyr.h - structure values for pyramid */

{       "pyramid", "pyramid",   /* long and short names */
        "cube",         /* long name of dual */
        5, 8, 5,        /* number of vertices, edges, and faces */
        {               /* vertices (x,y,z) */
                        /* all points must be within radius 1 of the origin */
#define T 1.0
                {  T,  0,  0 },
                { -T,  0,  0 },
                {  0,  T,  0 },
                {  0, -T,  0 },
                {  0,  0,  T },
                /* {  0,  0, -T }, */
#undef T
        },
        {       /* faces (numfaces + indexes into vertices) */
                /*  faces must be specified clockwise from the outside */
                3,      0, 4, 2,
                /* 3,   0, 2, 5, */
                /* 3,   0, 5, 3, */
                3,      0, 3, 4,
                3,      1, 2, 4,
                /* 3,   1, 5, 2, */
                /* 3,   1, 3, 5, */
                3,      1, 4, 3,
                4,      0, 2, 1, 3,
        }
},              /* leave a comma to separate from the next include file */
/* end */