Code support for polygon drawing