1 |
greg |
2.1 |
/* RCSid: $Id$ */ |
2 |
|
|
/* |
3 |
|
|
* Header file for triangle mesh routines using barycentric coordinates |
4 |
|
|
*/ |
5 |
|
|
|
6 |
|
|
#define TCALNAME "tmesh.cal" /* the name of our auxiliary file */ |
7 |
|
|
|
8 |
|
|
typedef struct { |
9 |
|
|
int ax; /* major axis */ |
10 |
|
|
FLOAT tm[2][3]; /* transformation */ |
11 |
|
|
} BARYCCM; |
12 |
|
|
|
13 |
|
|
#ifndef COSTOL |
14 |
|
|
#define COSTOL 0.99985 /* cosine of tolerance for smoothing */ |
15 |
|
|
#endif |
16 |
|
|
|
17 |
|
|
/* flat_tri() return values */ |
18 |
|
|
#define ISBENT 0 /* is not flat */ |
19 |
|
|
#define ISFLAT 1 /* is flat */ |
20 |
|
|
#define RVBENT 2 /* reversed and not flat */ |
21 |
|
|
#define RVFLAT 3 /* reversed and flat */ |
22 |
|
|
#define DEGEN -1 /* degenerate (zero area) */ |