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 |
|
|
|
19 |
|
|
FUN ofun[NUMOTYPE] = INIT_OTYPE; |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
initotypes() /* initialize ofun array */ |
23 |
|
|
{ |
24 |
|
|
ofun[OBJ_SPHERE].funp = |
25 |
|
|
ofun[OBJ_BUBBLE].funp = o_sphere; |
26 |
|
|
ofun[OBJ_FACE].funp = o_face; |
27 |
|
|
ofun[OBJ_CONE].funp = |
28 |
|
|
ofun[OBJ_CUP].funp = |
29 |
|
|
ofun[OBJ_CYLINDER].funp = |
30 |
|
|
ofun[OBJ_TUBE].funp = |
31 |
|
|
ofun[OBJ_RING].funp = o_cone; |
32 |
|
|
ofun[OBJ_INSTANCE].funp = o_instance; |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
o_default() /* default action is no intersection */ |
37 |
|
|
{ |
38 |
|
|
return(O_MISS); |
39 |
|
|
} |