@pimms.value<EOL><INDENT>def vertex_face_index(labels, faces):<DEDENT>
d = {k:[] for k in labels}<EOL>for (i,(u,v,w)) in enumerate(faces.T):<EOL><INDENT>d[u].append(i)<EOL>d[v].append(i)<EOL>d[w].append(i)<EOL><DEDENT>return pyr.pmap({k:tuple(v) for (k,v) in six.iteritems(d)})<EOL>
tess.vertex_face_index is a map whose keys are vertices and whose values are tuples of the
indices of the faces that contain the relevant vertex.