itkwasm_mesh_filters.slice_mesh¶

Module Contents¶

Functions¶

slice_mesh

Slice a mesh along planes into polylines.

API¶

itkwasm_mesh_filters.slice_mesh.slice_mesh(input_mesh: itkwasm.Mesh, planes: Any) → itkwasm.Mesh¶

Slice a mesh along planes into polylines.

Parameters:
  • input_mesh (Mesh) – The input triangle mesh.

  • planes (Any) – An array of plane locations to slice the mesh. Each plane is defined by an array of ‘origin’ and ‘spacing’ values.

Returns:

The output mesh comprised of polylines. Cell data indicates whether part of a closed line. Point data indicates the slice index.

Return type:

Mesh