A three-dimensional model of the nucleus of Comet Halley