# | Line 22 | Line 22 | o_face( /* compute intersection with polygonal face * | |
---|---|---|
22 | double t; /* distance to intersection */ | |
23 | FVECT pisect; /* intersection point */ | |
24 | register FACE *f; /* face record */ | |
25 | – | register int i; |
25 | ||
26 | f = getface(o); | |
27 | ||
# | Line 45 | Line 44 | o_face( /* compute intersection with polygonal face * | |
44 | if (t <= FTINY || t >= r->rot) /* not good enough */ | |
45 | return(0); | |
46 | /* compute intersection */ | |
47 | < | for (i = 0; i < 3; i++) |
49 | < | pisect[i] = r->rorg[i] + r->rdir[i]*t; |
47 | > | VSUM(pisect, r->rorg, r->rdir, t); |
48 | ||
49 | if (!inface(pisect, f)) /* ray intersects face? */ | |
50 | return(0); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |