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 2.3 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.5 by schorsch, Thu Jun 26 00:58:09 2003 UTC

# Line 2 | Line 2
2   /*
3   *  face.h - header for routines using polygonal faces.
4   */
5 + #ifndef _RAD_FACE_H_
6 + #define _RAD_FACE_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11   #include "copyright.h"
12  
# Line 9 | Line 14
14  
15   typedef struct {        /* a polygonal face */
16          FVECT  norm;            /* the plane's unit normal */
17 <        FLOAT  offset;          /* plane equation:  DOT(norm, v) == offset */
18 <        FLOAT  area;            /* area of face */
19 <        FLOAT  *va;             /* vertex array (o->oargs.farg) */
17 >        RREAL  offset;          /* plane equation:  DOT(norm, v) == offset */
18 >        RREAL  area;            /* area of face */
19 >        RREAL  *va;             /* vertex array (o->oargs.farg) */
20          short  nv;              /* # of vertices */
21          short  ax;              /* axis closest to normal */
22   } FACE;
23  
19 #ifdef NOPROTO
24  
21 extern FACE  *getface();
22 extern void  freeface();
23 extern int  inface();
24
25 #else
26
25   extern FACE  *getface(OBJREC *o);
26   extern void  freeface(OBJREC *o);
27   extern int  inface(FVECT p, FACE *f);
28  
29 +
30 + #ifdef __cplusplus
31 + }
32   #endif
33 + #endif /* _RAD_FACE_H_ */
34 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines