parameters: (
      mesh: "itkt.Mesh", filename: fileiotype, compression: bool = False
  )
docstring: Write a mesh to a file.
  
      The writer is instantiated according to the type of the input mesh.
docstring_summary: Write a mesh to a file.
docstring_tokens: Write a mesh to a file .
function: def meshwrite(
      mesh: "itkt.Mesh", filename: fileiotype, compression: bool = False
  ) -> None:
      """Write a mesh to a file.
  
      The writer is instantiated according to the type of the input mesh.
      """
      import itk
  
      mesh.UpdateOutputInformation()
      # don't put that writer in the automatic pipeline
      tmp_auto_pipeline = auto_pipeline.current
      auto_pipeline.current = None
      writer = itk.MeshFileWriter[type(mesh)].New(
          Input=mesh, FileName=f"{filename}", UseCompression=compression
      )
      auto_pipeline.current = tmp_auto_pipeline
      writer.Update()
function_tokens: def meshwrite ( mesh : "itkt.Mesh" , filename : fileiotype , compression : bool = False ) -> None : import itk mesh . UpdateOutputInformation ( ) # don't put that writer in the automatic pipeline tmp_auto_pipeline = auto_pipeline . current auto_pipeline . current = None writer = itk . MeshFileWriter [ type ( mesh ) ] . New ( Input = mesh , FileName = f"{filename}" , UseCompression = compression ) auto_pipeline . current = tmp_auto_pipeline writer . Update ( )