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

Comparing ray/src/rt/m_direct.c (file contents):
Revision 2.13 by greg, Tue Apr 19 01:15:06 2005 UTC vs.
Revision 2.14 by greg, Sat Jun 9 07:16:47 2012 UTC

# Line 111 | Line 111 | redirect(              /* compute n'th ray redirection */
111                  if (errno == EDOM || errno == ERANGE)
112                          goto computerr;
113          }
114 <        if (mf->f != &unitxf)
115 <                multv3(nr.rdir, nr.rdir, mf->f->xfm);
114 >        if (mf->fxp != &unitxf)
115 >                multv3(nr.rdir, nr.rdir, mf->fxp->xfm);
116          if (r->rox != NULL)
117                  multv3(nr.rdir, nr.rdir, r->rox->f.xfm);
118          if (normalize(nr.rdir) == 0.0)
# Line 190 | Line 190 | dir_proj(              /* compute a director's projection */
190                  if (errno == EDOM || errno == ERANGE)
191                          goto computerr;
192          }
193 <        if (mf->f != &unitxf)
194 <                multv3(newdir, newdir, mf->f->xfm);
193 >        if (mf->fxp != &unitxf)
194 >                multv3(newdir, newdir, mf->fxp->xfm);
195                                          /* normalization unnecessary */
196          newdot = DOT(newdir, nv);
197          if (newdot <= FTINY && newdot >= -FTINY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines