ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/cvmesh.h
Revision: 2.3
Committed: Sat Jun 7 00:56:31 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.2: +11 -12 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Removed NOPROTO sections.

File Contents

# User Rev Content
1 schorsch 2.3 /* RCSid $Id: cvmesh.h,v 2.2 2003/03/14 21:27:46 greg Exp $ */
2 greg 2.1 /*
3     * Header for Radiance triangle mesh conversion
4     *
5     * Include after standard.h
6     */
7 schorsch 2.3 #ifndef _RAD_CVMESH_H_
8     #define _RAD_CVMESH_H_
9     #ifdef __cplusplus
10     extern "C" {
11     #endif
12 greg 2.1
13     #include "octree.h"
14     #include "object.h"
15     #include "mesh.h"
16    
17     extern MESH *ourmesh; /* global mesh pointer */
18    
19     extern FVECT meshbounds[2]; /* mesh bounding box */
20    
21    
22     extern MESH *cvinit(char *nm);
23 greg 2.2 extern int cvpoly(OBJECT mo, int n, FVECT *vp,
24     FVECT *vn, FLOAT (*vc)[2]);
25     extern int cvtri(OBJECT mo, FVECT vp1, FVECT vp2, FVECT vp3,
26 greg 2.1 FVECT vn1, FVECT vn2, FVECT vn3,
27     FLOAT vc1[2], FLOAT vc2[2], FLOAT vc3[2]);
28     extern void cvmeshbounds(void);
29     extern MESH *cvmesh(void);
30 greg 2.2 /* defined in wfconv.c */
31     void wfreadobj(char *objfn);
32    
33 greg 2.1
34 schorsch 2.3 #ifdef __cplusplus
35     }
36     #endif
37     #endif /* _RAD_CVMESH_H_ */
38