Creates polygons with two corners given.