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.19 by greg, Fri Jun 14 10:34:26 1991 UTC vs.
Revision 1.20 by greg, Mon Jun 17 08:26:18 1991 UTC

# Line 23 | Line 23 | extern int  maxdepth;                  /* maximum recursion depth */
23   extern double  minweight;               /* minimum ray weight */
24   extern int  do_irrad;                   /* compute irradiance? */
25  
26 < long  nrays = 0L;                       /* number of rays traced */
26 > long  raynum = 0L;                      /* next unique ray number */
27 > long  nrays = 0L;                       /* number of calls to rayvalue */
28  
29   static double  Lambfa[5] = {PI, PI, PI, 0.0, 0.0};
30   OBJREC  Lamb = {
# Line 61 | Line 62 | double  rw;
62                  r->crtype = ro->crtype | (r->rtype = rt);
63                  VCOPY(r->rorg, ro->rop);
64          }
65 <        r->rno = nrays;
65 >        r->rno = raynum++;
66          r->newcset = r->clipset;
67          r->ro = NULL;
68          r->rot = FHUGE;
# Line 78 | Line 79 | RAY  *r;
79   {
80          extern int  (*trace)();
81  
82 +        nrays++;                        /* increment trace counter */
83          if (localhit(r, &thescene))
84                  raycont(r);
85          else if (sourcehit(r))
# Line 312 | Line 314 | register CUBE  *scene;
314          int  sflags;                    /* sign flags */
315          double  t, dt;
316          register int  i;
315
316        nrays++;                        /* increment trace counter */
317  
318          sflags = 0;
319          for (i = 0; i < 3; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines