pyFM.mesh.geometry.neigh_faces

pyFM.mesh.geometry.neigh_faces(faces)

Return the indices of neighbor faces for each vertex.

This assumes all vertices appear in the face list.

Parameters:

faces ((m, 3) np.ndarray) – Vertex indices defining the faces.

Returns:

neighbors – Length-n list, where each entry is the list of indices of the neighbor faces of the corresponding vertex.

Return type:

list