1 |
#ifndef lint |
2 |
static const char RCSid[] = "$Id$"; |
3 |
#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 |
extern int o_mesh(); |
19 |
|
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 |
ofun[OBJ_MESH].funp = o_mesh; |
35 |
} |
36 |
|
37 |
|
38 |
o_default() /* default action is no intersection */ |
39 |
{ |
40 |
return(O_MISS); |
41 |
} |