The development of a general three-dimensional surface under ion bombardment