Moved Polygon code to its own header.