File: objplane.h

package info (click to toggle)
x11-apps 7.7%2B11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,820 kB
  • sloc: ansic: 90,098; sh: 17,213; lisp: 8,407; makefile: 977; lex: 162; yacc: 82; xml: 31
file content (20 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* objplane.h - structure values for plane */

{       "plane", "plane",       /* long and short names */
        "cube",         /* long name of dual */
        4, 4, 1,        /* 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 },
#undef T
        },
        {       /* faces (numfaces + indexes into vertices) */
                /*  faces must be specified clockwise from the outside */
                4,      0, 2, 1, 3,
        }
},              /* leave a comma to separate from the next include file */
/* end */