home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) 1986 Regents of the University of California */
-
- /* SCCSid "@(#)face.h 2.1 11/12/91 LBL" */
-
- /*
- * face.h - header for routines using polygonal faces.
- *
- * 8/30/85
- */
-
- #define VERTEX(f,n) ((f)->va + 3*(n))
-
- typedef struct { /* a polygonal face */
- FVECT norm; /* the plane's unit normal */
- FLOAT offset; /* plane equation: DOT(norm, v) == offset */
- FLOAT area; /* area of face */
- FLOAT *va; /* vertex array (o->oargs.farg) */
- short nv; /* # of vertices */
- short ax; /* axis closest to normal */
- } FACE;
-
- extern FACE *getface();
-