Fixed bug in the TabShapeRPolygons

In previous version I only extracted one polygon for each object. This is fixed and now I extract all of the polygons for each object.