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

Comparing ray/src/cv/bsdf2rad.c (file contents):
Revision 2.40 by greg, Tue Apr 22 04:45:25 2025 UTC vs.
Revision 2.42 by greg, Sat Jun 7 05:09:45 2025 UTC

# Line 7 | Line 7 | static const char RCSid[] = "$Id$";
7  
8   #include <stdlib.h>
9   #include "rtio.h"
10 #include "paths.h"
10   #include "rtmath.h"
11   #include "bsdfrep.h"
12  
# Line 44 | Line 43 | const double   sph_xoffset = 15.;
43   #define set_minlog()    overall_min = (overall_min < 1e-5) ? 1e-5 : overall_min; \
44                                  min_log10 = log10(overall_min) - .1
45  
47 char    *progname;
48
46   /* Get Fibonacci sphere vector (0 to NINCIDENT-1) */
47   static RREAL *
48   get_ivector(FVECT iv, int i)
# Line 709 | Line 706 | main(int argc, char *argv[])
706          double  myLim[2];
707          SDData  myBSDF;
708          int     a, n;
709 +                                                /* set global progname */
710 +        fixargv0(argv[0]);
711                                                  /* check arguments */
713        progname = argv[0];
712          a = 1;
713          myLim[0] = -1; myLim[1] = -2;           /* specified BSDF range? */
714          if (argc > a+3 && argv[a][0] == '-' && argv[a][1] == 'r') {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines