itkwasm_mesh_io.wasm_write_mesh_async¶

Module Contents¶

Functions¶

wasm_write_mesh_async

Write an itk-wasm file format converted to an mesh file format

API¶

async itkwasm_mesh_io.wasm_write_mesh_async.wasm_write_mesh_async(mesh: itkwasm.Mesh, serialized_mesh: str, information_only: bool = False, use_compression: bool = False, binary_file_type: bool = False) Tuple[Any]¶

Write an itk-wasm file format converted to an mesh file format

Parameters:
  • mesh (Mesh) – Input mesh

  • serialized_mesh (str) – Output mesh

  • information_only (bool) – Only write mesh metadata – do not write pixel data.

  • use_compression (bool) – Use compression in the written file, if supported

  • binary_file_type (bool) – Use a binary file type in the written file, if supported

Returns:

Whether the input could be written. If false, the output mesh is not valid.

Return type:

Any