1 |
/* RCSid $Id$ */ |
2 |
/* |
3 |
* Header for Radiance triangle mesh conversion |
4 |
* |
5 |
* Include after standard.h |
6 |
*/ |
7 |
|
8 |
#include "octree.h" |
9 |
#include "object.h" |
10 |
#include "mesh.h" |
11 |
|
12 |
extern MESH *ourmesh; /* global mesh pointer */ |
13 |
|
14 |
extern FVECT meshbounds[2]; /* mesh bounding box */ |
15 |
|
16 |
#ifdef NOPROTO |
17 |
|
18 |
extern MESH *cvinit(); |
19 |
extern int cvpoly(); |
20 |
extern int cvtri(); |
21 |
extern void cvmeshbounds(); |
22 |
extern MESH *cvmesh(); |
23 |
|
24 |
#else |
25 |
|
26 |
extern MESH *cvinit(char *nm); |
27 |
extern int cvpoly(int n, FVECT *vp, FVECT *vn, FLOAT (*vc)[2]); |
28 |
extern int cvtri(FVECT vp1, FVECT vp2, FVECT vp3, |
29 |
FVECT vn1, FVECT vn2, FVECT vn3, |
30 |
FLOAT vc1[2], FLOAT vc2[2], FLOAT vc3[2]); |
31 |
extern void cvmeshbounds(void); |
32 |
extern MESH *cvmesh(void); |
33 |
|
34 |
#endif /* NOPROTO */ |