Encoding poly path