A pathetic attempt at trilinear interpolation.