Move terrain editing code into SmoothTerrainModel.