Geometry of Fences and Mountains