a 3d model of a grating