Welding deformation in real time