| 8 |
|
extern "C" { |
| 9 |
|
#endif |
| 10 |
|
|
| 11 |
– |
#include "copyright.h" |
| 12 |
– |
|
| 11 |
|
#define VERTEX(f,n) ((f)->va + 3*(n)) |
| 12 |
|
|
| 13 |
|
typedef struct { /* a polygonal face */ |
| 14 |
|
FVECT norm; /* the plane's unit normal */ |
| 15 |
< |
FLOAT offset; /* plane equation: DOT(norm, v) == offset */ |
| 16 |
< |
FLOAT area; /* area of face */ |
| 17 |
< |
FLOAT *va; /* vertex array (o->oargs.farg) */ |
| 15 |
> |
RREAL offset; /* plane equation: DOT(norm, v) == offset */ |
| 16 |
> |
RREAL area; /* area of face */ |
| 17 |
> |
RREAL *va; /* vertex array (o->oargs.farg) */ |
| 18 |
|
short nv; /* # of vertices */ |
| 19 |
|
short ax; /* axis closest to normal */ |
| 20 |
|
} FACE; |