| 70 |
|
fclose(fp); |
| 71 |
|
return(0); |
| 72 |
|
} |
| 73 |
+ |
if (sscanf(buf, "sample_name \"%[^\"]\"", bsdf_name) == 1) |
| 74 |
+ |
continue; |
| 75 |
|
if (sscanf(buf, "format: theta phi %s", typ) == 1) { |
| 76 |
|
if (!strcasecmp(typ, "DSF")) { |
| 77 |
|
inpfile[i].isDSF = 1; |
| 216 |
|
return(1); |
| 217 |
|
/* reduce data set */ |
| 218 |
|
make_rbfrep(); |
| 219 |
+ |
#ifdef DEBUG |
| 220 |
+ |
fprintf(stderr, "Minimum BSDF = %.4f\n", bsdf_min); |
| 221 |
+ |
#endif |
| 222 |
|
/* produce spheres at meas. */ |
| 223 |
|
puts("void plastic yellow\n0\n0\n5 .6 .4 .01 .04 .08\n"); |
| 224 |
|
min_log = log(bsdf_min*.5); |