def check_overlapping_bounds(polydata_0, polydata_1):
    """
    Checks whether two polydata have overlapping bounds

    :param polydata_0: vtkPolyData representing a 3D mesh
    :param polydata_1: vtkPolyData representing a 3D mesh

    :return : True if bounding boxes overlap, False otherwise
    """

    bounds_0 = polydata_0.GetBounds()
    bounds_1 = polydata_1.GetBounds()
    overlapping = True
    for i in range(0, 3):
        #This assumes that GetBounds always returns lower, upper
        if bounds_0[i*2] > bounds_1[i*2+1]:
            overlapping = False
        else:
            if bounds_1[i*2] > bounds_0[i*2+1]:
                overlapping = False

    return overlapping