simnibs.mesh_tools.mesh_io.read_gifti_surface

simnibs.mesh_tools.mesh_io.read_gifti_surface(fn, element_tag: ElementTags | None = None)

Reads a gifti surface

Parameters:
  • fn (str) – File name

  • element_tag (ElementTags) – if the element_tag is passed to this function, the mesh element will have that tag. otherwise, the tag is taken from the metadata if the metadata has the “ElementTag” metadata. if it is not in the metadata, we check if the filename is know to be a specific surface. if that also fails, the tag is set to ElementTags.UNKNOWN_SURFACE

Returns:

msh – mesh structure with geometrical information

Return type:

Msh()