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

Comparing ray/src/rt/m_wgmdf.c (file contents):
Revision 2.9 by greg, Fri Dec 20 16:29:50 2024 UTC vs.
Revision 2.10 by greg, Fri May 23 17:09:26 2025 UTC

# Line 256 | Line 256 | set_scomp(WGMDDAT *wp, int trans)
256          if (normalize(sp->v) == 0.0) {  /* orientation vector==normal? */
257                  if (fabs(sp->u_alpha - sp->v_alpha) > 0.001)
258                          objerror(wp->mtp, WARNING, "bad orientation vector");
259 <                getperpendicular(sp->u, sp->mo.pnorm, 1);       /* punting */
259 >                getperpendicular(sp->u, sp->mo.pnorm, 0);       /* punting */
260                  fcross(sp->v, sp->mo.pnorm, sp->u);
261                  sp->u_alpha = sp->v_alpha = sqrt( 0.5 *
262                          (sp->u_alpha*sp->u_alpha + sp->v_alpha*sp->v_alpha) );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines