Monte Carlo ray tracing programs are now being used to solve many optical analysis problems in which the entire optomechanical system must be considered. In many analyses, it is desired to consider the effects of diffraction by mechanical edges. Smoothly melding the effects of diffraction, a wave phenomenon, into a ray-tracing program is a significant technical challenge. This paper discusses t...