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

Comparing ray/src/cv/bsdfrep.c (file contents):
Revision 2.34 by greg, Mon Oct 26 21:12:20 2020 UTC vs.
Revision 2.35 by greg, Tue Sep 7 20:13:13 2021 UTC

# Line 478 | Line 478 | e_advect_rbf(const MIGRATION *mig, const FVECT invec,
478          double          t, full_dist;
479                                                  /* get relative position */
480          t = Acos(DOT(invec, mig->rbfv[0]->invec));
481 <        if (t < M_PI/grid_res) {                /* near first DSF */
481 >        if (t <= .001) {                        /* near first DSF */
482                  n = sizeof(RBFNODE) + sizeof(RBFVAL)*(mig->rbfv[0]->nrbf-1);
483                  rbf = (RBFNODE *)malloc(n);
484                  if (rbf == NULL)
# Line 488 | Line 488 | e_advect_rbf(const MIGRATION *mig, const FVECT invec,
488                  return(rbf);
489          }
490          full_dist = acos(DOT(mig->rbfv[0]->invec, mig->rbfv[1]->invec));
491 <        if (t > full_dist-M_PI/grid_res) {      /* near second DSF */
491 >        if (t >= full_dist-.001) {              /* near second DSF */
492                  n = sizeof(RBFNODE) + sizeof(RBFVAL)*(mig->rbfv[1]->nrbf-1);
493                  rbf = (RBFNODE *)malloc(n);
494                  if (rbf == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines