ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/face.h
Revision: 1.1
Committed: Thu Feb 2 10:34:15 1989 UTC (35 years, 3 months ago) by greg
Content type: text/plain
Branch: MAIN
Log Message:
Initial revision

File Contents

# Content
1 /* Copyright (c) 1986 Regents of the University of California */
2
3 /* SCCSid "$SunId$ LBL" */
4
5 /*
6 * face.h - header for routines using polygonal faces.
7 *
8 * 8/30/85
9 */
10
11 #define VERTEX(f,n) ((f)->va + 3*(n))
12
13 typedef struct { /* a polygonal face */
14 FVECT norm; /* the plane's unit normal */
15 double const; /* plane equation: DOT(norm, v) == const */
16 double area; /* area of face */
17 double *va; /* vertex array (o->oargs.farg) */
18 short nv; /* # of vertices */
19 short ax; /* axis closest to normal */
20 } FACE;
21
22 extern FACE *getface();