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.23 by greg, Mon Mar 24 06:07:46 2014 UTC vs.
Revision 2.24 by greg, Tue Mar 25 14:55:35 2014 UTC

# Line 198 | Line 198 | rotate_rbf(RBFNODE *rbf, const FVECT invec)
198          int                     pos[2];
199          int                     n;
200  
201 <        for (n = ((-.01 > phi) | (phi > .01))*rbf->nrbf; n-- > 0; ) {
201 >        for (n = (cos(phi) < 1.-FTINY)*rbf->nrbf; n-- > 0; ) {
202                  ovec_from_pos(outvec, rbf->rbfa[n].gx, rbf->rbfa[n].gy);
203                  spinvector(outvec, outvec, vnorm, phi);
204                  pos_from_vec(pos, outvec);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines