WIP: extract polygon