How to change data from 3D to 2D?

I used GeomVertexData to render 3D , but I don’t how to create data used by aspect2d?

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