A method of generating three dimensional shapes for a cornea and lens of an eye, the method including illuminating an eye with multiple sections of light and obtaining multiple sectional images of said eye based on said multiple sections of light. For each one of the obtained multiple sectional images, the following processes are performed:a) automatically identifying arcs, in two-dimensional space, corresponding to anterior and posterior corneal and lens surfaces of the eye by image analysis and curve fitting of the one of the obtained multiple sectional images; andb) determining an intersection of lines ray traced back from the identified arcs in two-dimensional space with a known position of a section of space containing the section of light that generated the one of the obtained multiple sectional images, wherein the determined intersection defines a three-dimensional arc curve. The method further including reconstructing three-dimensional shapes of the anterior and posterior cornea surfaces and the anterior and posterior lens surfaces based on fitting the three-dimensional arc curve to a three-dimensional shape.