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

Comparing ray/src/cv/bsdf2klems.c (file contents):
Revision 2.17 by greg, Tue May 5 22:16:49 2015 UTC vs.
Revision 2.19 by greg, Sun Jan 24 14:28:51 2016 UTC

# Line 207 | Line 207 | eval_bsdf(const char *fname)
207          double          sum;
208          int             i, j, n;
209  
210 +        initurand(npsamps);
211          SDclearBSDF(&bsd, fname);               /* load BSDF file */
212          if ((ec = SDloadFile(&bsd, fname)) != SDEnone)
213                  goto err;
# Line 445 | Line 446 | main(int argc, char *argv[])
446                          goto userr;
447                  }
448          if (single_plane_incident >= 0) {       /* function-based BSDF? */
449 <                if (i != argc-1 || fundefined(argv[i]) != 6) {
449 >                if (i != argc-1 || fundefined(argv[i]) < 3) {
450                          fprintf(stderr,
451          "%s: need single function with 6 arguments: bsdf(ix,iy,iz,ox,oy,oz)\n",
452                                          progname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines