def mesh_error(mesh1, mesh2):
    """Error (intersection over union) of the two meshes"""
    intersection = mesh1.intersection(mesh2)
    union = mesh1.union(mesh2)
    error = intersection.volume/union.volume
    return error