ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/face.h
Revision: 1.3
Committed: Wed Oct 23 12:19:26 1991 UTC (32 years, 6 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.2: +3 -3 lines
Log Message:
added FLOAT definition for vectors and matrices

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 FLOAT offset; /* plane equation: DOT(norm, v) == offset */
16 FLOAT area; /* area of face */
17 FLOAT *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();