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 |
void wfreadobj(); |
24 |
|
25 |
#else |
26 |
|
27 |
extern MESH *cvinit(char *nm); |
28 |
extern int cvpoly(OBJECT mo, int n, FVECT *vp, |
29 |
FVECT *vn, FLOAT (*vc)[2]); |
30 |
extern int cvtri(OBJECT mo, FVECT vp1, FVECT vp2, FVECT vp3, |
31 |
FVECT vn1, FVECT vn2, FVECT vn3, |
32 |
FLOAT vc1[2], FLOAT vc2[2], FLOAT vc3[2]); |
33 |
extern void cvmeshbounds(void); |
34 |
extern MESH *cvmesh(void); |
35 |
/* defined in wfconv.c */ |
36 |
void wfreadobj(char *objfn); |
37 |
|
38 |
|
39 |
#endif /* NOPROTO */ |