Polygon editor

Updated. For changes see commits.

Broken helppatch, it died in an accidental Merge Conflict.