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

Comparing ray/src/util/wrapBSDF.c (file contents):
Revision 2.11 by greg, Fri Feb 20 18:07:10 2015 UTC vs.
Revision 2.13 by greg, Wed Mar 25 22:50:48 2015 UTC

# Line 160 | Line 160 | input2str(const char *inpspec)
160                          fprintf(stderr, "%s: cannot open\n", inpspec);
161                          return "";
162                  }
163 + #ifndef _WIN32                          /* XXX somehow broken on Windows */
164                  len = lseek(fd, 0L, SEEK_END);
165                  if (len > 0) {
166                          lseek(fd, 0L, SEEK_SET);
# Line 178 | Line 179 | input2str(const char *inpspec)
179                          close(fd);
180                          return str;
181                  }
182 + #endif
183                  fp = fdopen(fd, "r");           /* not a regular file */
184          }
185                                                  /* reading from stream */
# Line 452 | Line 454 | writeBSDFblock(const char *caller, struct s_dfile *df)
454                  puts("\t\t<DetectorSpectrum>ASTM E308 1931 Z.dsp</DetectorSpectrum>");
455                  break;
456          case DSuprime:
457 <                puts("\t\t<Wavelength unit=\"Integral\">CIE-Z</Wavelength>");
457 >                puts("\t\t<Wavelength unit=\"Integral\">CIE-u</Wavelength>");
458                  puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp</SourceSpectrum>");
459                  puts("\t\t<DetectorSpectrum>ASTM E308 1931 u.dsp</DetectorSpectrum>");
460                  break;
461          case DSvprime:
462 <                puts("\t\t<Wavelength unit=\"Integral\">CIE-Z</Wavelength>");
462 >                puts("\t\t<Wavelength unit=\"Integral\">CIE-v</Wavelength>");
463                  puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp</SourceSpectrum>");
464                  puts("\t\t<DetectorSpectrum>ASTM E308 1931 v.dsp</DetectorSpectrum>");
465                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines