mne.read_tri#

mne.read_tri(fname_in, swap=False, verbose=None)[source]#

Read triangle definitions from an ascii file.

Parameters
fname_instr

Path to surface ASCII file (ending with ‘.tri’).

swapbool

Assume the ASCII file vertex ordering is clockwise instead of counterclockwise.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns
rrarray, shape=(n_vertices, 3)

Coordinate points.

trisint array, shape=(n_faces, 3)

Triangulation (each line contains indices for three points which together form a face).

Notes

New in version 0.13.0.