Geometry and asymptotics for the Painleve equations