find_mask (fs, node_edges)
node_edges is a nv by ne
array, where ne is the number of edges on a cell (6 for a tet, 8 for a pyramid, 9 for a prism, 12 for a
hexahedron). The entries in each row are 1 precisely if the corresponding edge is incident on the vertex.
The exclusive or of the rows which correspond to nonzero entries in fs contains 1 in entries corresponding
to edges where fs has opposite values on the vertices. (The vertices and edges of a cell
have a standard ordering which is discussed in ``Standard ordering for the four types of mesh cells'' on
page
.)
The mask returned by this function will be a one dimensional array ntotal * ne long. An entry [i * ne + j] in this mask will be 1 precisely if edge j of cell i is cut by the isosurface or plane.