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, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

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.

Examples using mne.read_tri