Building terrain and wall models