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

Comparing ray/src/rt/o_face.c (file contents):
Revision 1.2 by greg, Tue Feb 21 14:56:20 1989 UTC vs.
Revision 2.1 by greg, Tue Nov 12 17:09:17 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1990 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 49 | Line 49 | register RAY  *r;
49          for (i = 0; i < 3; i++)
50                  pisect[i] = r->rorg[i] + r->rdir[i]*t;
51  
52 <        if (inface(pisect, f)) {                /* ray intersects face? */
52 >        if (!inface(pisect, f))                 /* ray intersects face? */
53 >                return(0);
54  
55 <                r->ro = o;
56 <                r->rot = t;
57 <                VCOPY(r->rop, pisect);
58 <                VCOPY(r->ron, f->norm);
59 <                r->rod = rdot;
60 <        }
55 >        r->ro = o;
56 >        r->rot = t;
57 >        VCOPY(r->rop, pisect);
58 >        VCOPY(r->ron, f->norm);
59 >        r->rod = rdot;
60 >        r->rox = NULL;
61 >
62          return(1);                              /* hit */
63   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines