Tool, workpiece, or mechanical component inspection