Mapping 3D mesh

On the flat figure I applied a texture image using flat mapping.
Both figures have the same number of faces.
How do I get the same texture in the 3D figure?
Same proportion.

My knowledge is limited to a little bit of python and Grasshopper.