Add Polygon2D class.