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

Comparing ray/src/rt/ashikhmin.c (file contents):
Revision 2.4 by greg, Thu Dec 4 05:26:28 2014 UTC vs.
Revision 2.5 by greg, Thu May 21 05:54:54 2015 UTC

# Line 216 | Line 216 | getacoords_as(         /* set up coordinate system */
216          if (normalize(np->v) == 0.0) {
217                  if (fabs(np->u_power - np->v_power) > 0.1)
218                          objerror(np->mp, WARNING, "bad orientation vector");
219 <                getperpendicular(np->u, np->pnorm);     /* punting */
219 >                getperpendicular(np->u, np->pnorm, 1);  /* punting */
220                  fcross(np->v, np->pnorm, np->u);
221                  np->u_power = np->v_power =
222                          2./(1./(np->u_power+1e-5) + 1./(np->v_power+1e-5));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines