Diffraction pattern simulator of two-dimensional polygon aperture