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.16 by greg, Thu May 2 11:58:20 1991 UTC vs.
Revision 1.17 by greg, Fri May 10 08:51:06 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1990 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 322 | Line 322 | register CUBE  *scene;
322                  else if (r->rdir[i] < -FTINY)
323                          sflags |= 0x10 << i;
324          }
325 +        if (sflags == 0)
326 +                error(CONSISTENCY, "zero ray direction in localhit");
327          t = 0.0;
328          if (!incube(scene, curpos)) {
329                                          /* find distance to entry */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines