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.2 by greg, Sat Jun 29 22:35:15 2013 UTC vs.
Revision 2.4 by greg, Sun Jun 30 14:46:29 2013 UTC

# Line 96 | Line 96 | init_pabopto_inp(const int i, const char *fname)
96                  fputs(": unknown incident angle\n", stderr);
97                  return(0);
98          }
99 +        while (inpfile[i].phi < 0)      /* normalize phi direction */
100 +                inpfile[i].phi += 360.;
101          return(1);
102   }
103  
# Line 112 | Line 114 | add_pabopto_inp(const int i)
114                  fputs(": cannot open\n", stderr);
115                  return(0);
116          }
115 #ifdef DEBUG
116        fprintf(stderr, "Loading measurements from '%s'...\n", inpfile[i].fname);
117 #endif
117                                          /* prepare input grid */
118          if (!i || cmp_inang(&inpfile[i-1], &inpfile[i])) {
119                  if (i)                  /* need to process previous incidence */
# Line 125 | Line 124 | add_pabopto_inp(const int i)
124   #endif
125                  new_bsdf_data(inpfile[i].theta, inpfile[i].phi);
126          }
127 + #ifdef DEBUG
128 +        fprintf(stderr, "Loading measurements from '%s'...\n", inpfile[i].fname);
129 + #endif
130                                          /* read scattering data */
131          while (fscanf(fp, "%lf %lf %lf\n", &theta_out, &phi_out, &val) == 3)
132                  add_bsdf_data(theta_out, phi_out, val, inpfile[i].isDSF);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines