Growth and ion erosion: Two methods for patterning surfaces