3D square cross section of two functions