ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/face.h
Revision: 2.3
Committed: Tue Feb 25 02:47:21 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.2: +2 -57 lines
Log Message:
Replaced inline copyright notice with #include "copyright.h"

File Contents

# User Rev Content
1 greg 2.3 /* RCSid $Id$ */
2 greg 1.1 /*
3     * face.h - header for routines using polygonal faces.
4 greg 2.2 */
5    
6 greg 2.3 #include "copyright.h"
7 greg 1.1
8     #define VERTEX(f,n) ((f)->va + 3*(n))
9    
10     typedef struct { /* a polygonal face */
11     FVECT norm; /* the plane's unit normal */
12 greg 1.3 FLOAT offset; /* plane equation: DOT(norm, v) == offset */
13     FLOAT area; /* area of face */
14     FLOAT *va; /* vertex array (o->oargs.farg) */
15 greg 1.1 short nv; /* # of vertices */
16     short ax; /* axis closest to normal */
17     } FACE;
18    
19 greg 2.2 #ifdef NOPROTO
20    
21 greg 1.1 extern FACE *getface();
22 greg 2.2 extern void freeface();
23     extern int inface();
24    
25     #else
26    
27     extern FACE *getface(OBJREC *o);
28     extern void freeface(OBJREC *o);
29     extern int inface(FVECT p, FACE *f);
30    
31     #endif