Restructuring to generation of terrain