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

Comparing ray/src/cv/pkgBSDF.c (file contents):
Revision 2.8 by greg, Sat Dec 1 19:45:43 2018 UTC vs.
Revision 2.10 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 12 | Line 12 | static const char RCSid[] = "$Id$";
12   int     do_stdout = 0;                  /* send Radiance object to stdout? */
13   int     do_instance = 0;                /* produce instance/octree pairs? */
14  
15 char    *progname;                      /* global argv[0] */
16
15   /* Return appropriate suffix for Z offset */
16   static const char *
17   get_suffix(double zval)
# Line 63 | Line 61 | geomBSDF(const SDData *bsp)
61          close(fd);
62                                          /* set up command */
63          if (do_instance) {
64 <                sprintf(command, "mgf2rad %s | oconv -f - > %s.oct",
64 >                sprintf(command, "mgf2rad -s %s | oconv -f - > %s.oct",
65                                          tmpfile, bsp->name);
66          } else {
67                  fflush(stdout);
68 <                sprintf(command, "mgf2rad %s", tmpfile);
68 >                sprintf(command, "mgf2rad -s %s", tmpfile);
69          }
70          if (system(command)) {
71                  fprintf(stderr, "Error running: %s\n", command);
# Line 143 | Line 141 | main(int argc, char *argv[])
141          int     status = 0;
142          int     i;
143  
144 <        progname = argv[0];
144 >        fixargv0(argv[0]);              /* sets global progname */
145  
146          for (i = 1; i < argc && argv[i][0] == '-'; i++)
147                  switch (argv[i][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines