Dies or mandrels with section variable during extruding