Polygon constrains. Corner cases.