Thermal or thermo-mechanical treatment