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

Comparing ray/src/util/rfluxmtx.c (file contents):
Revision 2.27 by greg, Wed Apr 1 01:38:36 2015 UTC vs.
Revision 2.28 by greg, Tue May 19 12:13:53 2015 UTC

# Line 1292 | Line 1292 | main(int argc, char *argv[])
1292                          if (argv[a][2] != 'v') na = 2;
1293                          break;
1294                  case 'a':               /* special case */
1295 <                        na = (argv[a][2] == 'v') ? 4 : 2;
1295 >                        if (argv[a][2] == 'p') {
1296 >                                na = 2; /* photon map [+ bandwidth(s)] */
1297 >                                if (a < argc-3 && atoi(argv[a+1]) > 0)
1298 >                                        na += 1 + (a < argc-4 && atoi(argv[a+2]) > 0);
1299 >                        } else
1300 >                                na = (argv[a][2] == 'v') ? 4 : 2;
1301                          break;
1302                  case 'm':               /* special case */
1303                          if (!argv[a][2]) goto userr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines