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.8 by greg, Fri Apr 5 01:10:26 2024 UTC vs.
Revision 2.9 by greg, Fri May 23 17:09:26 2025 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines