I have a Mesh and a MeshValueCollection. I would like to end up with a MeshFunction. I could set the values in the MeshFunction if I could use the (cell number, local entity number) as an index into the edges.
# loading data
mesh = Mesh("test.xml")
mvc = MeshValueCollection("size_t", mesh, "sides.xml")
# empty mesh function
meshf = MeshFunction("size_t", mesh, 1, 0)
# I could iterate over the mesh value collection like this:
for cell_num, entity_num in mvc.values():
# ? but I can't figure out how I could use these to index the mesh function ?