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 2.5 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.6 by greg, Thu Mar 2 16:51:55 2006 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines