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

Comparing ray/src/cv/pabopto2bsdf.c (file contents):
Revision 2.8 by greg, Tue Oct 22 04:29:27 2013 UTC vs.
Revision 2.10 by greg, Sat Nov 9 05:47:49 2013 UTC

# Line 70 | Line 70 | init_pabopto_inp(const int i, const char *fname)
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;
# Line 214 | Line 216 | main(int argc, char *argv[])
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines