ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_qtree.h
(Generate patch)

Comparing ray/src/hd/sm_qtree.h (file contents):
Revision 3.11 by gwlarson, Sun Jan 10 10:27:44 1999 UTC vs.
Revision 3.12 by gwlarson, Thu Jun 10 15:22:24 1999 UTC

# Line 22 | Line 22
22   #include "object.h"
23   typedef struct _FUNC {
24      int (*func)();
25 +    int (*func_after)();
26      int *argptr;
27   }FUNC;
28  
29   #define F_FUNC(f) (f.func)
30 + #define F_FUNC2(f) (f.func_after)
31   #define F_ARGS(f) (f.argptr)
32   #define  QUADTREE               int
33  
# Line 70 | Line 72 | typedef struct _FUNC {
72   #define QT_SET_NTH_ELEM(s,n)   ((s)[(n)])  
73  
74   #define QT_CLEAR_SET(s)        ((s)[0] = 0)
75 < #define QT_SET_NEXT_ELEM(p)    (*(p)++)
75 > #define QT_SET_NEXT_ELEM(p)    (*(++p))
76   #define QT_SET_PTR(s)          (&((s)[1]))
77  
78  
# Line 78 | Line 80 | typedef struct _FUNC {
80   #define MAXCSET          2*QT_MAXSET
81   #define QT_MAXCSET       MAXCSET
82   #ifndef QT_SET_THRESHOLD
83 < #define QT_SET_THRESHOLD 64  
83 > #define QT_SET_THRESHOLD 32  
84   #endif
85  
86   #ifndef QT_MAX_LEVELS
# Line 116 | Line 118 | extern OBJECT  *qtqueryset();
118   #else
119   #define qtqueryset(qt)  (qtsettab[QT_SET_INDEX(qt)])
120   #endif
121 <
121 > #if 0
122 > #define qtremovelast(qt) ((*(qtqueryset(qt)))--)
123 > #endif
124   #define qtinset(qt,id)  inset(qtqueryset(qt),id)
125   #define qtgetset(os,qt) setcopy(os,qtqueryset(qt))
126  
# Line 150 | Line 154 | extern QUADTREE qtRoot_remove_tri();
154   extern QUADTREE qtAdd_tri();
155   extern QUADTREE qtRoot_visit_tri_edges();
156   extern QUADTREE qtRoot_trace_ray();
157 +
158 +
159 +
160 +
161 +
162 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines