ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/cvmesh.h
(Generate patch)

Comparing ray/src/ot/cvmesh.h (file contents):
Revision 2.2 by greg, Fri Mar 14 21:27:46 2003 UTC vs.
Revision 2.5 by schorsch, Mon Jul 14 22:24:00 2003 UTC

# Line 4 | Line 4
4   *
5   *  Include after standard.h
6   */
7 + #ifndef _RAD_CVMESH_H_
8 + #define _RAD_CVMESH_H_
9  
10   #include "octree.h"
11   #include "object.h"
12   #include "mesh.h"
13  
14 + #ifdef __cplusplus
15 + extern "C" {
16 + #endif
17 +
18   extern MESH     *ourmesh;               /* global mesh pointer */
19  
20   extern FVECT    meshbounds[2];          /* mesh bounding box */
21  
16 #ifdef NOPROTO
22  
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
23   extern MESH     *cvinit(char *nm);
24   extern int      cvpoly(OBJECT mo, int n, FVECT *vp,
25 <                                FVECT *vn, FLOAT (*vc)[2]);
25 >                                FVECT *vn, RREAL (*vc)[2]);
26   extern int      cvtri(OBJECT mo, FVECT vp1, FVECT vp2, FVECT vp3,
27                          FVECT vn1, FVECT vn2, FVECT vn3,
28 <                        FLOAT vc1[2], FLOAT vc2[2], FLOAT vc3[2]);
28 >                        RREAL vc1[2], RREAL vc2[2], RREAL vc3[2]);
29   extern void     cvmeshbounds(void);
30   extern MESH     *cvmesh(void);
31                                          /* defined in wfconv.c */
32   void            wfreadobj(char *objfn);
33  
34  
35 < #endif /* NOPROTO */
35 > #ifdef __cplusplus
36 > }
37 > #endif
38 > #endif /* _RAD_CVMESH_H_ */
39 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines