The following figures were commissioned for a math textbook, drawn in LuaTeX using the pst-solides3d package for PSTricks.
Rotation around $x$ of $z=f(x)$
Rotation around $x$ of $\{z : g(x)\le z \le f(x)\}$
Rotation around $y$ of $z=f(x)$
Rotation around $y$ of $x=f(z)$