mne.write_surface(fname, coords, faces, create_stamp='')

Write a triangular Freesurfer surface mesh

Accepts the same data format as is returned by read_surface().


fname : str

File to write.

coords : array, shape=(n_vertices, 3)

Coordinate points.

faces : int array, shape=(n_faces, 3)

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

create_stamp : str

Comment that is written to the beginning of the file. Can not contain line breaks.

See also