Moulding of thermoplastics