mxwldmn - filter rays based upon their weight
mxwldmn uses the standard parameter interface
stdin
, it reads
the UNIX standard input stream. It accepts rays in bpipe format.
stdout
, it writes to
the UNIX standard output stream. It writes rays in bpipe format.
mxwldmn reads a ray stream in bpipe format and discards rays based upon their weight. It generates a uniformly distributed random number (using ranlib's genunf function) between 0 and 1, and discards the ray if it's weight is less than the random number. The weights of rays which are not discarded are set to unity; their polarization information is discarded as well.
It writes out a bpipe formatted ray stream.
Copyright 2006 Smithsonian Astrophysical Observatory
This software is released under the GNU General Public License. You may find a copy at
http://www.fsf.org/copyleft/gpl.html
This documents version 1.0.0 of mxwldmn.
D. Jerius