Added threed.py, utilities for 3d plots in mpl.
Added function to sample cone.

Also made some fixes to ortho.
Made make_cap actually work.