Surface Model Generation by the Relics from Slice Images, and the Approach to the Automatic Restoration