added conversion from Bounds and Triangles to Polygons