ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/initotypes.c
Revision: 2.3
Committed: Tue Mar 11 17:08:55 2003 UTC (21 years, 8 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.2: +2 -0 lines
Log Message:
First working version of new "mesh" primitive, obj2mesh converter

File Contents

# User Rev Content
1 greg 1.1 #ifndef lint
2 greg 2.2 static const char RCSid[] = "$Id$";
3 greg 1.1 #endif
4     /*
5     * Initialize ofun[] list for octree generator
6     */
7    
8     #include "standard.h"
9    
10     #include "octree.h"
11    
12     #include "otypes.h"
13    
14     extern int o_sphere();
15     extern int o_face();
16     extern int o_cone();
17     extern int o_instance();
18 greg 2.3 extern int o_mesh();
19 greg 1.1
20     FUN ofun[NUMOTYPE] = INIT_OTYPE;
21    
22    
23     initotypes() /* initialize ofun array */
24     {
25     ofun[OBJ_SPHERE].funp =
26     ofun[OBJ_BUBBLE].funp = o_sphere;
27     ofun[OBJ_FACE].funp = o_face;
28     ofun[OBJ_CONE].funp =
29     ofun[OBJ_CUP].funp =
30     ofun[OBJ_CYLINDER].funp =
31     ofun[OBJ_TUBE].funp =
32     ofun[OBJ_RING].funp = o_cone;
33     ofun[OBJ_INSTANCE].funp = o_instance;
34 greg 2.3 ofun[OBJ_MESH].funp = o_mesh;
35 greg 1.1 }
36    
37    
38     o_default() /* default action is no intersection */
39     {
40     return(O_MISS);
41     }