Read Amira files (AmiraMesh 3D and HyperSurface) in Python.
Use from Python (2.7 or 3.x):
import py_amira_file_reader.read_amira as read_amira
data = read_amira.read_amira( 'filename.am' )
Use from the command line to convert a .surf file to a .obj file:
python -m py_amira_file_reader.surf_to_obj filename.surf
Use from the command line to convert a .am file to a .nrrd file:
python -m py_amira_file_reader.am_to_nrrd filename.am
See also the tests and example scripts in the tests/
and examples/
directories.