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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 1.3 by greg, Wed Apr 19 22:24:28 1989 UTC vs.
Revision 1.4 by greg, Sun May 7 17:50:51 1989 UTC

# Line 22 | Line 22 | extern double  minweight;              /* minimum ray weight */
22  
23   long  nrays = 0L;                       /* number of rays traced */
24  
25 < #define  MAXLOOP        32              /* modifier loop detection */
25 > #define  MAXLOOP        1024            /* modifier loop detection */
26  
27   #define  RAYHIT         (-1)            /* return value for intercepted ray */
28  
# Line 102 | Line 102 | int  mod;
102          register OBJREC  *m;
103                                          /* check for infinite loop */
104          if (depth++ >= MAXLOOP)
105 <                objerror(r->ro, USER, "material loop");
105 >                objerror(r->ro, USER, "possible modifier loop");
106          for ( ; mod != OVOID; mod = m->omod) {
107                  m = objptr(mod);
108 +                /****** unnecessary test since modifier() is always called
109                  if (!ismodifier(m->otype)) {
110                          sprintf(errmsg, "illegal modifier \"%s\"", m->oname);
111                          error(USER, errmsg);
112                  }
113 +                ******/
114                  (*ofun[m->otype].funp)(m, r);   /* execute function */
115                  m->lastrno = r->rno;
116                  if (ismaterial(m->otype)) {     /* materials call raytexture */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines