itkwasm_mesh_io.wasm_write_mesh

Module Contents

Functions

wasm_write_mesh

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

API

itkwasm_mesh_io.wasm_write_mesh.wasm_write_mesh(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 image 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