Gravar-mail: Generalized mesh-based Monte Carlo for wide-field illumination and detection via mesh retessellation