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.24 by greg, Fri Feb 17 22:31:49 2017 UTC vs.
Revision 2.26 by greg, Tue Mar 19 22:03:24 2019 UTC

# Line 31 | Line 31 | static const char      klems_half[] = "LBNL/Klems Half";
31   static const char       klems_quarter[] = "LBNL/Klems Quarter";
32   static const char       *kbasis = klems_full;
33                                  /* number of BSDF samples per patch */
34 < static int              npsamps = 256;
34 > static int              npsamps = 1024;
35                                  /* limit on number of RBF lobes */
36   static int              lobe_lim = 15000;
37                                  /* progress bar length */
# Line 602 | Line 602 | main(int argc, char *argv[])
602                                          add_wbsdf("-f", 1);
603                                          add_wbsdf(argv[i], 1);
604                                  } else {
605 <                                        fcompile(argv[i]);
605 >                                        char    *fpath = getpath(argv[i],
606 >                                                            getrlibpath(), 0);
607 >                                        if (fpath == NULL) {
608 >                                                fprintf(stderr,
609 >                                                "%s: cannot find file '%s'\n",
610 >                                                        argv[0], argv[i]);
611 >                                                return(1);
612 >                                        }
613 >                                        fcompile(fpath);
614                                          single_plane_incident = 0;
615                                  }
616                          } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines