A non contact CAD based inspection system