Geometry reconstruction using genetic programming and local optimization