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