Method and mechanism for extraction and recognition of polygons in an IC designпатент