ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/src/rt/rxfluxmtx.cpp
(Generate patch)

Comparing src/rt/rxfluxmtx.cpp (file contents):
Revision 2.7 by greg, Fri Oct 24 19:58:19 2025 UTC vs.
Revision 2.8 by greg, Fri Nov 14 23:51:42 2025 UTC

# Line 1344 | Line 1344 | main(int argc, char *argv[])
1344          char            *outfn = NULL;
1345          FVECT           *rayarr = NULL;
1346          const char      *sendfn = "";
1347 +        double          binjitter = 0;
1348          PARAMS          sendparams;
1349          int             rval;
1350          int             a, i;
# Line 1384 | Line 1385 | main(int argc, char *argv[])
1385                  case 'W':                       /* verbose mode */
1386                          check_bool(2,verby);
1387                          break;
1388 +                case 'b':                       /* bin jitter? */
1389 +                        if (argv[a][2] != 'j')
1390 +                                goto userr;
1391 +                        check(3,"f");
1392 +                        binjitter = atof(argv[++a]);
1393 +                        break;
1394                  case 'v':                       // view file
1395                          if (argv[a][2] != 'f')
1396                                  goto userr;
# Line 1576 | Line 1583 | main(int argc, char *argv[])
1583          if (load_scene(argv[a], add_recv_object) < 0)
1584                  quit(1);
1585          finish_receiver();              // makes final AddModifier() call
1586 +        if (binjitter > FTINY)          // global bin jitter?
1587 +                varset(const_cast<char *>("JTR"), '=', binjitter);
1588                                          // prepare output files
1589          if (recover) {
1590                  if (force_open) {
# Line 1691 | Line 1700 | main(int argc, char *argv[])
1700   userr:
1701          if (a < argc && argv[a][0] == '-')
1702                  fprintf(stderr, "%s: unsupported/misplaced option '%s'\n", progname, argv[a]);
1703 <        fprintf(stderr, "Usage: %s [-W] [rcontrib options] { sender.rad | view | - } receiver.rad [-i system.oct] [system.rad ..]\n",
1703 >        fprintf(stderr, "Usage: %s [-W][-bj frac] [rcontrib options] { sender.rad | view | - } receiver.rad [-i system.oct] [system.rad ..]\n",
1704                                  progname);
1705          quit(1);
1706   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)