ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rglinst.c
(Generate patch)

Comparing ray/src/common/rglinst.c (file contents):
Revision 3.1 by gwlarson, Tue Jun 9 11:18:35 1998 UTC vs.
Revision 3.2 by gwlarson, Wed Jun 17 17:18:38 1998 UTC

# Line 11 | Line 11 | static char SCCSid[] = "$SunId$ SGI";
11   #include "radogl.h"
12   #include "octree.h"
13  
14 + #define MAXLEVEL        16              /* maximum instance hierarchy level */
15 +
16   typedef struct {
17          int     listid;                         /* our list id */
18          short   localmatl;                      /* uses local material only */
# Line 101 | Line 103 | LUENT  *lp;
103   int
104   loadoctrees()                           /* load octrees we've saved up */
105   {
106 +        int     levelsleft = MAXLEVEL;
107          int     nocts = 0;
108          LUTAB   looptab;
109                                  /* loop through new octree references */
110          while (ottab.tsiz) {
111 +                if (!levelsleft--)
112 +                        error(USER, "too many octree levels -- instance loop?");
113                  copystruct(&looptab, &ottab);
114                  ottab.tsiz = 0;
115                  nocts += lu_doall(&looptab, buildoctlist);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines