def callback(mesh, k, args):
    boundary = set(mesh.vertices_on_boundary())
    for (key, attr) in mesh.vertices(data=True):
        if (key in fixed):
            continue
        if (key in boundary):
            (x, y, z) = border.closest_point(mesh.vertex_coordinates(key))
            attr['x'] = x
            attr['y'] = y
            attr['z'] = z
        else:
            (x, y, z) = target.closest_point(mesh.vertex_coordinates(key))
            attr['x'] = x
            attr['y'] = y
            attr['z'] = z
    conduit.redraw(k)
def callback(mesh, k, args):
    boundary = set(mesh.vertices_on_boundary())
    for (key, attr) in mesh.vertices(data=True):
        if (key in fixed):
            continue
        if (key in boundary):
            (x, y, z) = border.closest_point(mesh.vertex_coordinates(key))
            attr['x'] = x
            attr['y'] = y
            attr['z'] = z
        else:
            (x, y, z) = target.closest_point(mesh.vertex_coordinates(key))
            attr['x'] = x
            attr['y'] = y
            attr['z'] = z
    conduit.redraw(k)