The present invention is directed toward the renewable surface treatment of medical devices such as contact lenses and medical implants. The pivot axis does not move appreciably as the grating is pivoted. Every new feature triangle built from a new fingerprint is classified first and then compared with its geometric data to multiple filed feature triangles with the same triangle classification to shorten overall comparison duration.