Back to index

radiance  4R0+20100331
cvmesh.h
Go to the documentation of this file.
00001 /* RCSid $Id: cvmesh.h,v 2.5 2003/07/14 22:24:00 schorsch Exp $ */
00002 /*
00003  *  Header for Radiance triangle mesh conversion
00004  *
00005  *  Include after standard.h
00006  */
00007 #ifndef _RAD_CVMESH_H_
00008 #define _RAD_CVMESH_H_
00009 
00010 #include "octree.h"
00011 #include "object.h"
00012 #include "mesh.h"
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 extern MESH   *ourmesh;            /* global mesh pointer */
00019 
00020 extern FVECT  meshbounds[2];              /* mesh bounding box */
00021 
00022 
00023 extern MESH   *cvinit(char *nm);
00024 extern int    cvpoly(OBJECT mo, int n, FVECT *vp,
00025                             FVECT *vn, RREAL (*vc)[2]);
00026 extern int    cvtri(OBJECT mo, FVECT vp1, FVECT vp2, FVECT vp3,
00027                      FVECT vn1, FVECT vn2, FVECT vn3,
00028                      RREAL vc1[2], RREAL vc2[2], RREAL vc3[2]);
00029 extern void   cvmeshbounds(void);
00030 extern MESH   *cvmesh(void);
00031                                    /* defined in wfconv.c */
00032 void          wfreadobj(char *objfn);
00033 
00034 
00035 #ifdef __cplusplus
00036 }
00037 #endif
00038 #endif /* _RAD_CVMESH_H_ */
00039