shapes.rect(bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());
shapes.setColor(boundingBoxColor);
Array<FloatArray> polygons = bounds.getPolygons();
for (int i = 0, n = polygons.size; i < n; i++) {
FloatArray polygon = polygons.get(i);
shapes.polygon(polygon.items, 0, polygon.size);
}
}
shapes.end();
shapes.begin(ShapeType.Filled);