@pimms.value<EOL><INDENT>def face_index(faces):<DEDENT>
idx = {}<EOL>for (a,b,c,i) in zip(faces[<NUM_LIT:0>], faces[<NUM_LIT:1>], faces[<NUM_LIT:2>], range(faces.shape[<NUM_LIT:1>])):<EOL><INDENT>idx[(a,b,c)] = i<EOL>idx[(b,c,a)] = i<EOL>idx[(c,b,a)] = i<EOL>idx[(a,c,b)] = i<EOL>idx[(b,a,c)] = i<EOL>idx[(c,a,b)] = i<EOL><DEDENT>return pyr.pmap(idx)<EOL>
tess.face_index is a mapping that indexes the faces by vertex labels (not vertex indices).