ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/initotypes.c
Revision: 2.2
Committed: Sat Feb 22 02:07:26 2003 UTC (21 years ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +1 -4 lines
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# Content
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
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 }