Inversion of geological knowledge for fold geometry