A method and apparatus for generating three-dimensional shape data in analytic surface expression form by using polygonal shape data. The immersion media is removed in a controlled manner in particular in an automated microscope. Each of preliminary shift values of the actual cell contacts with respect to target cell contacts in a target cell block to be formed using the mask may be measured based on the image.