Evaluate a function on a set of vertices

See: Mapping from mesh.coordinates() to u.vector() - #2 by dokken