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.21 by greg, Thu Jun 20 13:29:32 1991 UTC vs.
Revision 1.22 by greg, Wed Jul 17 12:38:48 1991 UTC

# Line 64 | Line 64 | double  rw;
64                  r->crtype = ro->crtype | (r->rtype = rt);
65                  VCOPY(r->rorg, ro->rop);
66          }
67 +        rayclear(r);
68 +        return(r->rlvl <= maxdepth && r->rweight >= minweight ? 0 : -1);
69 + }
70 +
71 +
72 + rayclear(r)                     /* clear a ray for (re)evaluation */
73 + register RAY  *r;
74 + {
75          r->rno = raynum++;
76          r->newcset = r->clipset;
77          r->ro = NULL;
# Line 72 | Line 80 | double  rw;
80          setcolor(r->pcol, 1.0, 1.0, 1.0);
81          setcolor(r->rcol, 0.0, 0.0, 0.0);
82          r->rt = 0.0;
75        return(r->rlvl <= maxdepth && r->rweight >= minweight ? 0 : -1);
83   }
84  
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines