ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/initotypes.c
Revision: 2.1
Committed: Tue Nov 12 17:00:57 1991 UTC (32 years, 5 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.1: +0 -0 lines
Log Message:
updated revision number for release 2.0

File Contents

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