Implement polygon mode
Merge pull request #36 from tomaka/polygon-mode

Implement polygon mode