itkwasm_mesh_filters.repair_async¶

Module Contents¶

Functions¶

repair_async

Repair a mesh so it is 2-manifold and optionally watertight.

API¶

async itkwasm_mesh_filters.repair_async.repair_async(input_mesh: itkwasm.Mesh, merge_tolerance: float = 1e-06, minimum_component_area: float = 3, maximum_hole_area: float = 0.1, maximum_hole_edges: int = 2000, maximum_degree3_distance: float = 0, remove_intersecting_triangles: bool = False) → itkwasm.Mesh¶

Repair a mesh so it is 2-manifold and optionally watertight.

Parameters:
  • input_mesh (Mesh) – The input mesh

  • merge_tolerance (float) – Point merging tolerance as a percent of the bounding box diagonal.

  • minimum_component_area (float) – Minimum component area as a percent of the total area. Components smaller than this are removed.

  • maximum_hole_area (float) – Maximum area of a hole as a percent of the total area. Holes smaller than this are filled.

  • maximum_hole_edges (int) – Maximum number of edges in a hole. Holes with fewer edges than this are filled.

  • maximum_degree3_distance (float) – Maximum distance as a percent of the bounding box diagonal. Vertices with degree 3 that are closer than this are merged.

  • remove_intersecting_triangles (bool) – Remove intersecting triangles.

Returns:

The output repaired mesh.

Return type:

Mesh