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