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

Comparing ray/src/rt/m_bsdf.c (file contents):
Revision 2.17 by greg, Thu Sep 22 02:15:56 2011 UTC vs.
Revision 2.19 by greg, Tue Apr 24 15:36:40 2012 UTC

# Line 512 | Line 512 | m_bsdf(OBJREC *m, RAY *r)
512                  nd.vray[1] = -r->rdir[1];
513                  nd.vray[2] = -r->rdir[2];
514                  ec = SDmapDir(nd.vray, nd.toloc, nd.vray);
515 +        }
516 +        if (ec) {
517 +                objerror(m, WARNING, "Illegal orientation vector");
518 +                return(1);
519          }
520 <        if (!ec)
517 <                ec = SDinvXform(nd.fromloc, nd.toloc);
520 >        ec = SDinvXform(nd.fromloc, nd.toloc);
521                                                  /* determine BSDF resolution */
522          if (!ec)
523                  ec = SDsizeBSDF(nd.sr_vpsa, nd.vray, NULL,
# Line 557 | Line 560 | m_bsdf(OBJREC *m, RAY *r)
560                  bnorm[2] = -nd.pnorm[2];
561                  if (nd.thick != 0) {            /* proxy with offset? */
562                          VCOPY(vtmp, r->rop);
563 <                        VSUM(r->rop, vtmp, r->ron, -nd.thick);
563 >                        VSUM(r->rop, vtmp, r->ron, nd.thick);
564                          multambient(ctmp, r, bnorm);
565                          VCOPY(r->rop, vtmp);
566                  } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines