surfa.load_mesh#

surfa.load_mesh(filename, fmt=None)#

Load a mesh file into a Mesh object. Supported file formats are:

  • ‘fs’: Default FreeSurfer surface format.

  • ‘gifti’: Gifti geometry format.

Parameters
  • filename (str) – File path to read.

  • fmt (str, optional) – Forced file format. If None (default), file format is extrapolated from extension or assumed to be in the extensionless ‘fs’ surface format.

Returns

A mesh object loaded from file.

Return type

Mesh