def METHOD_NAME(matrices, vertices, edges, faces, count, offset, r=0):
    result_vertices = []
    result_edges = []
    result_faces = []
    x = 0
    for matrix in matrices:
        new_vertices, new_edges, new_faces = iterate(matrices, matrix, vertices, edges, faces, count, offset+x, r)
        x += len(new_vertices)
        result_vertices.extend(new_vertices)
        result_edges.extend(new_edges)
        result_faces.extend(new_faces)
    return result_vertices, result_edges, result_faces