Algorithm 483: Masked three-dimensional plot program with rotations
PLOT3D will accept three-dimensional data in various forms, rotate it in three-space, and plot the projection of the resulting figure onto the x-y plane. Those lines or portions of lines which should be hidden by previous lines are masked.