Dynamic Referencing in 3D Optical Metrology