ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/face.h
(Generate patch)

Comparing ray/src/common/face.h (file contents):
Revision 1.1 by greg, Thu Feb 2 10:34:15 1989 UTC vs.
Revision 2.3 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   *  face.h - header for routines using polygonal faces.
7 *
8 *     8/30/85
4   */
5  
6 + #include "copyright.h"
7 +
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 <        double  const;          /* plane equation:  DOT(norm, v) == const */
13 <        double  area;           /* area of face */
14 <        double  *va;            /* vertex array (o->oargs.farg) */
12 >        FLOAT  offset;          /* plane equation:  DOT(norm, v) == offset */
13 >        FLOAT  area;            /* area of face */
14 >        FLOAT  *va;             /* vertex array (o->oargs.farg) */
15          short  nv;              /* # of vertices */
16          short  ax;              /* axis closest to normal */
17   } FACE;
18  
19 + #ifdef NOPROTO
20 +
21   extern FACE  *getface();
22 + 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines