I was trying to convert 2D images to 3D by rotating them about the axes (like a circle to a sphere). Currently my problem is that suppose I have two functions f(x) and g(x) both in one variable. I wish to make a plot of the functions and use rotation to get 3D plots. Based on the 3D plots I would distinguish between the two.

I think one way could be the work out the exact expressions mathematically for the new functions after rotation, but that can be computationally infeasible for not so reasonable functions. Can someone please suggest a way to do it using suitable softwares?