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); |
612 |
|
if (ifp == NULL) |
613 |
|
return(0); |
614 |
|
if (getheader(ifp, headline, NULL) < 0 || (single_plane_incident < 0) | |
615 |
< |
!input_orient | !output_orient) { |
615 |
> |
!input_orient | !output_orient | |
616 |
> |
(grid_res < 16) | (grid_res > 256)) { |
617 |
|
fprintf(stderr, "%s: missing/bad format for BSDF interpolant\n", |
618 |
|
progname); |
619 |
|
return(0); |