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 1.3 by greg, Wed Apr 19 22:24:26 1989 UTC

# 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->rofs = 1.0; setident4(r->rofx);
61 >        r->robs = 1.0; setident4(r->robx);
62 >
63          return(1);                              /* hit */
64   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines