This study proposes a single-layer metasurface-based flat optical device for single-shot 3D imaging. The device projects a coded point cloud in Fourier space, and a sophisticated matching algorithm enables 3D reconstruction. Experimental results demonstrate submillimeter depth accuracy (less than 0.24 mm at 300 mm), showcasing the potential for applications like surface shape detection and gesture recognition.