visualizevtkconvert_amira_surf_to_vtk

convert_amira_surf_to_vtk

visualize.vtk.convert_amira_surf_to_vtk(surf_file, outname='surface', outdir='.')

Given the path to an amira .surf file, this method converts it to a .vtk surface file.

Parameters:
  • surf_file (str) – path to amira .surf file

  • outname (str, optional) – Name of the output vtk surface file. Defaults to ‘surface’.

  • outdir (str, optional) – Directory to save the file to. Defaults to ‘.’.

Returns:

None. Writes out a .vtk file to the specified directory.