Online measurement of the surface during laser forming