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

Comparing ray/src/cv/bsdfquery.c (file contents):
Revision 2.2 by greg, Fri Nov 22 00:00:27 2013 UTC vs.
Revision 2.4 by greg, Thu Aug 21 10:33:48 2014 UTC

# Line 27 | Line 27 | readIOdir(FVECT idir, FVECT odir, FILE *fp, int fmt)
27  
28          switch (fmt) {
29          case 'a':
30 <                if (fscanf(fp, "%lf %lf %lf %lf %lf %lf",
31 <                        dvec, dvec+1, dvec+2, dvec+3, dvec+4, dvec+5) != 6)
30 >                if (fscanf(fp, FVFORMAT, dvec, dvec+1, dvec+2) != 3 ||
31 >                                fscanf(fp, FVFORMAT, dvec+3, dvec+4, dvec+5) != 3)
32                          return(0);
33                  VCOPY(idir, dvec);
34                  VCOPY(odir, dvec+3);
# Line 127 | Line 127 | main(int argc, char *argv[])
127                                                  progname);
128                                  return(1);
129                          }
130 <                        bsdf = eval_rbfrep(rbf, odir)/(output_orient*odir[2]);
130 >                        bsdf = eval_rbfrep(rbf, odir);
131                  }
132                  switch (outfmt) {               /* write to stdout */
133                  case 'a':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines