def saveMeshes(filename, objects):
 ext = os.path.splitext(filename)[1].lower()
 if (ext == '.stl'):
  stl.saveScene(filename, objects)
  return
 if (ext == '.amf'):
  amf.saveScene(filename, objects)
  return
 print ('Error: Unknown model extension: %s' % ext)

def saveMeshes ( filename , objects ) : ext = os . path . splitext ( filename ) [ 1 ] . lower ( ) if ( ext == '.stl' ) : stl . saveScene ( filename , objects ) return if ( ext == '.amf' ) : amf . saveScene ( filename , objects ) return print ( 'Error: Unknown model extension: %s' % ext )
save a list of objects into the file given by the filename .