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

Comparing ray/src/rt/aniso.c (file contents):
Revision 2.58 by greg, Tue Feb 24 19:39:26 2015 UTC vs.
Revision 2.59 by greg, Thu May 21 05:54:54 2015 UTC

# Line 333 | Line 333 | getacoords(            /* set up coordinate system */
333          if (normalize(np->v) == 0.0) {
334                  if (fabs(np->u_alpha - np->v_alpha) > 0.001)
335                          objerror(np->mp, WARNING, "illegal orientation vector");
336 <                getperpendicular(np->u, np->pnorm);     /* punting */
336 >                getperpendicular(np->u, np->pnorm, 1);  /* punting */
337                  fcross(np->v, np->pnorm, np->u);
338                  np->u_alpha = np->v_alpha = sqrt( 0.5 *
339                          (np->u_alpha*np->u_alpha + np->v_alpha*np->v_alpha) );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines