ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/cvmesh.h
Revision: 2.5
Committed: Mon Jul 14 22:24:00 2003 UTC (20 years, 8 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1, rad4R1, rad4R0, rad3R6, rad3R6P1, rad3R8, rad3R9
Changes since 2.4: +5 -4 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# User Rev Content
1 schorsch 2.5 /* RCSid $Id: cvmesh.h,v 2.4 2003/06/26 00:58:10 schorsch 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 greg 2.1
10     #include "octree.h"
11     #include "object.h"
12     #include "mesh.h"
13 schorsch 2.5
14     #ifdef __cplusplus
15     extern "C" {
16     #endif
17 greg 2.1
18     extern MESH *ourmesh; /* global mesh pointer */
19    
20     extern FVECT meshbounds[2]; /* mesh bounding box */
21    
22    
23     extern MESH *cvinit(char *nm);
24 greg 2.2 extern int cvpoly(OBJECT mo, int n, FVECT *vp,
25 schorsch 2.4 FVECT *vn, RREAL (*vc)[2]);
26 greg 2.2 extern int cvtri(OBJECT mo, FVECT vp1, FVECT vp2, FVECT vp3,
27 greg 2.1 FVECT vn1, FVECT vn2, FVECT vn3,
28 schorsch 2.4 RREAL vc1[2], RREAL vc2[2], RREAL vc3[2]);
29 greg 2.1 extern void cvmeshbounds(void);
30     extern MESH *cvmesh(void);
31 greg 2.2 /* defined in wfconv.c */
32     void wfreadobj(char *objfn);
33    
34 greg 2.1
35 schorsch 2.3 #ifdef __cplusplus
36     }
37     #endif
38     #endif /* _RAD_CVMESH_H_ */
39