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.1 by greg, Mon Mar 10 19:38:19 2003 UTC vs.
Revision 2.7 by greg, Thu Apr 15 23:51:04 2021 UTC

# Line 1 | Line 1
1 < /* RCSid: $Id$ */
1 > /* RCSid $Id$ */
2   /*
3   * Header file for triangle mesh routines using barycentric coordinates
4 + * Include after "fvect.h"
5   */
6 + #ifndef _RAD_TMESH_H_
7 + #define _RAD_TMESH_H_
8 + #ifdef __cplusplus
9 + extern "C" {
10 + #endif
11  
12 +
13   #define TCALNAME        "tmesh.cal"     /* the name of our auxiliary file */
14  
15   typedef struct {
16          int     ax;             /* major axis */
17 <        FLOAT   tm[2][3];       /* transformation */
17 >        RREAL   tm[2][3];       /* transformation */
18   } BARYCCM;
19  
20   #ifndef COSTOL
21 < #define COSTOL          0.99985         /* cosine of tolerance for smoothing */
21 > #define COSTOL          0.999995        /* cosine of tolerance for smoothing */
22   #endif
23  
24                                  /* flat_tri() return values */
# Line 20 | Line 27 | typedef struct {
27   #define RVBENT          2               /* reversed and not flat */
28   #define RVFLAT          3               /* reversed and flat */
29   #define DEGEN           -1              /* degenerate (zero area) */
30 +
31 +
32 + extern int      flat_tri(FVECT v1, FVECT v2, FVECT v3,
33 +                                FVECT n1, FVECT n2, FVECT n3);
34 + extern int      comp_baryc(BARYCCM *bcm,  FVECT v1, FVECT v2, FVECT v3);
35 + extern void     eval_baryc(RREAL wt[3], FVECT p, BARYCCM *bcm);
36 + extern int      get_baryc(RREAL wt[3], FVECT p, FVECT v1, FVECT v2, FVECT v3);
37 + extern void     fput_baryc(BARYCCM *bcm, RREAL com[][3], int n, FILE *fp);
38 +
39 +
40 + #ifdef __cplusplus
41 + }
42 + #endif
43 + #endif /* _RAD_TMESH_H_ */
44 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines