How to write an equation which mapping a square into a sphere?

742 Views Asked by At

Let say the curved cells on that sphere actually create a perfect square grid in shadow.

enter image description here

Is it possible to write an equation which will mapping the square in 2D into the curved cell in 3D?

The square's equation in 2D is |x| + |y| = a.