“…(2) modelling the grating as a volume with bars extending along the direction of the optical axis (3D) [21,22,40,41], or (3) simulation frameworks where the effect of the grating is accounted for implicitly, without introducing the gratings as components in the simulation [16,33,31]. Two-dimensional (flat) grating models are common in, but not restricted to, wave-optics simulations and involve either an idealised binary representation of the grating [18,26,27,44] or application of a complex transmission function (projection approximation) [23,14,15,25,24,32,20]. However, assuming the gratings are infinitesimally thin is not always a valid approximation.…”