brainstat.mesh.utils.triangles_to_edges

brainstat.mesh.utils.triangles_to_edges(tri)[source]

Convert a triangular mesh to an edge list.

Parameters

tri (numpy.ndarray) – Array of shape (n, 3) with the indices of the vertices of the triangles.

Returns

numpy.ndarray – Array of shape (m, 2) with the indices of the edges.