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

Comparing ray/src/cv/bsdf2rado.c (file contents):
Revision 2.4 by greg, Thu Sep 9 15:17:45 2021 UTC vs.
Revision 2.6 by greg, Thu Jun 5 19:10:31 2025 UTC

# Line 28 | Line 28 | char   validf[] = "-e \"valid(s,t)=X`SYS(s,t)^2+Y`SYS(s,
28   char    validf[] = "-e 'valid(s,t)=X`SYS(s,t)^2+Y`SYS(s,t)^2+Z`SYS(s,t)^2-1e-7'";
29   #endif
30  
31 char    *progname;
32
31   /* Produce a Radiance model plotting the indicated incident direction(s) */
32   int
33   main(int argc, char *argv[])
# Line 45 | Line 43 | main(int argc, char *argv[])
43          FVECT   idir, odir;
44          int     i, j, n;
45                                                  /* check arguments */
46 <        progname = argv[0];
46 >        fixargv0(argv[0]);
47          if (argc > 1 && !strcmp(argv[1], "-p")) {
48                  ++showPeaks;
49                  ++argv; --argc;
# Line 167 | Line 165 | main(int argc, char *argv[])
165                          ovec_from_pos(odir, i, j);
166                          if (inpXML) {
167                                  SDValue sval;
168 <                                if (SDreportError(SDevalBSDF(&sval, odir,
169 <                                                        idir, &myBSDF), stderr))
168 >                                if (SDreportError(SDevalBSDF(&sval, idir,
169 >                                                        odir, &myBSDF), stderr))
170                                          return(1);
171                                  bsdf = sval.cieY;
172                          } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines