Automatic on-machine measurement of complex high-precision parts