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

Comparing ray/src/cv/bsdf2ttree.c (file contents):
Revision 2.58 by greg, Wed Dec 15 01:38:50 2021 UTC vs.
Revision 2.63 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 17 | Line 17 | static const char RCSid[] = "$Id$";
17   #include "rtio.h"
18   #include "calcomp.h"
19   #include "bsdfrep.h"
20                                /* global argv[0] */
21 char                    *progname;
20                                  /* reciprocity averaging option */
21 < static const char       *recip = " -a";
21 > static const char       *recip = "";
22                                  /* percentage to cull (<0 to turn off) */
23   static double           pctcull = 90.;
24                                  /* sampling order */
# Line 28 | Line 26 | static int             samp_order = 6;
26                                  /* super-sampling threshold */
27   static double           ssamp_thresh = 0.35;
28                                  /* number of super-samples */
29 < static int              nssamp = 256;
29 > static int              nssamp = 64;
30                                  /* limit on number of RBF lobes */
31   static int              lobe_lim = 15000;
32                                  /* progress bar length */
# Line 746 | Line 744 | main(int argc, char *argv[])
744          int                     nsirs = 0;
745          char                    buf[1024];
746          int                     i;
747 <
748 <        progname = argv[0];
747 >                                                /* set global progname */
748 >        fixargv0(argv[0]);
749          esupport |= E_VARIABLE|E_FUNCTION|E_RCONST;
750          esupport &= ~(E_INCHAN|E_OUTCHAN);
751          scompile("PI:3.14159265358979323846", NULL, 0);
# Line 765 | Line 763 | main(int argc, char *argv[])
763                                  single_plane_incident = 0;
764                          break;
765                  case 'f':
766 <                        if (!argv[i][2]) {
766 >                        if ((argv[i][0] == '-') & !argv[i][2]) {
767                                  if (strchr(argv[++i], '=') != NULL) {
768                                          add_wbsdf("-f", 1);
769                                          add_wbsdf(argv[i], 1);
# Line 878 | Line 876 | main(int argc, char *argv[])
876                          fprintf(stderr, "\tor 3 arguments using Dx,Dy,Dz: bsdf(ix,iy,iz)\n");
877                          goto userr;
878                  }
879 +                doptimize(1);                   /* optimize definitions */
880                  ++eclock;
881                  add_wbsdf("-a", 1);
882                  add_wbsdf(tfmt[single_plane_incident], 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines