How to change data from 3D to 2D?

There’s no difference. You can just set the Y coordinates to 0 and only use the X and Z coordinates.