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.2 by greg, Tue Feb 21 14:39:56 1989 UTC vs.
Revision 2.6 by greg, Fri Jun 27 06:53: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 + #ifndef _RAD_FACE_H_
6 + #define _RAD_FACE_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
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  offset;         /* plane equation:  DOT(norm, v) == offset */
16 <        double  area;           /* area of face */
17 <        double  *va;            /* vertex array (o->oargs.farg) */
15 >        RREAL  offset;          /* plane equation:  DOT(norm, v) == offset */
16 >        RREAL  area;            /* area of face */
17 >        RREAL  *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();
22 >
23 > extern FACE  *getface(OBJREC *o);
24 > extern void  freeface(OBJREC *o);
25 > extern int  inface(FVECT p, FACE *f);
26 >
27 >
28 > #ifdef __cplusplus
29 > }
30 > #endif
31 > #endif /* _RAD_FACE_H_ */
32 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines