Menu

Deep learning for NeuroImaging in Python.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

surfify.utils.sampling.triangles_to_edges(triangles, return_index=False)[source]ΒΆ

Given a list of triangles, return a list of edges.

Parameters:

triangles : array int (N, 3)

Vertex indices representing triangles.

Returns:

edges : array int (N * 3, 2)

Vertex indices representing edges.

triangles_index : array (N * 3, )

Triangle indexes.

Follow us

© 2025, nidl developers