convert chain shapes to polygons.