Extrusion moulding combined with shaping by internal pressure generated in the material