Thermal pretreatment of the plastics material