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

Comparing ray/src/cv/bsdfmesh.c (file contents):
Revision 2.17 by greg, Wed Mar 5 22:47:16 2014 UTC vs.
Revision 2.18 by greg, Thu Mar 6 00:40:37 2014 UTC

# Line 177 | Line 177 | price_routes(PRICEMAT *pm, const RBFNODE *from_rbf, co
177              srow = psortrow(pm,i);
178              for (j = to_rbf->nrbf; j--; ) {
179                  double          d;              /* quadratic cost function */
180 <                d = DOT(vfrom, vto[j]);
181 <                d = (d >= 1.) ? .0 : acos(d);
180 >                d = Acos(DOT(vfrom, vto[j]));
181                  pm->prow[j] = d*d;
182                  d = R2ANG(to_rbf->rbfa[j].crad) - from_ang;
183                  pm->prow[j] += d*d;    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines