simnibs.write_freesurfer_surface

simnibs.write_freesurfer_surface(msh, fn, ref_fs=None)

Writes a FreeSurfer surface Only the surfaces (triangles) are writen to the FreeSurfer surface file

Parameters
  • msh (Msh()) – Mesh structure

  • fn (str) – output file name

  • ref_fs (str) – Name of ref_fs file, Used to set the tail