The Three-dimensional Structure of a Sunspot Magnetic Field