304 |
|
for (rbf = dsf_list; rbf != NULL; rbf = rbf->next) |
305 |
|
if (DOT(rbf->invec, newrbf->invec) >= 1.-FTINY) { |
306 |
|
fprintf(stderr, |
307 |
< |
"%s: Duplicate incident measurement (ignored)\n", |
308 |
< |
progname); |
307 |
> |
"%s: Duplicate incident measurement ignored at (%.1f,%.1f)\n", |
308 |
> |
progname, get_theta180(newrbf->invec), |
309 |
> |
get_phi360(newrbf->invec)); |
310 |
|
free(newrbf); |
311 |
|
return(-1); |
312 |
|
} |
611 |
|
clear_bsdf_rep(); |
612 |
|
if (ifp == NULL) |
613 |
|
return(0); |
614 |
< |
if (getheader(ifp, headline, NULL) < 0 || single_plane_incident < 0 | |
615 |
< |
!input_orient | !output_orient) { |
614 |
> |
if (getheader(ifp, headline, NULL) < 0 || (single_plane_incident < 0) | |
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); |