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

Comparing ray/src/common/tmesh.h (file contents):
Revision 2.3 by greg, Wed Mar 12 04:59:04 2003 UTC vs.
Revision 2.4 by schorsch, Fri Jun 6 16:38:47 2003 UTC

# Line 2 | Line 2
2   /*
3   * Header file for triangle mesh routines using barycentric coordinates
4   */
5 + #ifndef _RAD_TMESH_H_
6 + #define _RAD_TMESH_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11   #define TCALNAME        "tmesh.cal"     /* the name of our auxiliary file */
12  
# Line 21 | Line 26 | typedef struct {
26   #define RVFLAT          3               /* reversed and flat */
27   #define DEGEN           -1              /* degenerate (zero area) */
28  
24 #ifdef NOPROTO
29  
26 int             flat_tri();
27 int             comp_baryc();
28 void            eval_baryc();
29 int             get_baryc();
30 void            put_baryc();
31
32 #else
33
30   int             flat_tri(FVECT v1, FVECT v2, FVECT v3,
31                                  FVECT n1, FVECT n2, FVECT n3);
32   int             comp_baryc(BARYCCM *bcm,  FVECT v1, FVECT v2, FVECT v3);
# Line 38 | Line 34 | void           eval_baryc(FLOAT wt[3], FVECT p, BARYCCM *bcm);
34   int             get_baryc(FLOAT wt[3], FVECT p, FVECT v1, FVECT v2, FVECT v3);
35   void            put_baryc(BARYCCM *bcm, FLOAT com[][3], int n);
36  
37 < #endif /* NOPROTO */
37 >
38 > #ifdef __cplusplus
39 > }
40 > #endif
41 > #endif /* _RAD_TMESH_H_ */
42 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines