itkwasm_mesh_filters.smooth_remesh_asyncΒΆ

Module ContentsΒΆ

FunctionsΒΆ

smooth_remesh_async

Smooth and remesh a mesh to improve quality.

APIΒΆ

async itkwasm_mesh_filters.smooth_remesh_async.smooth_remesh_async(input_mesh: itkwasm.Mesh, number_points: float = 75, triangle_shape_adaptation: float = 1, triangle_size_adaptation: float = 0, normal_iterations: int = 3, lloyd_iterations: int = 5, newton_iterations: int = 30, newton_m: int = 7, lfs_samples: int = 10000) → itkwasm.MeshΒΆ

Smooth and remesh a mesh to improve quality.

Parameters:
  • input_mesh (Mesh) – The input mesh

  • number_points (float) – Number of points as a percent of the bounding box diagonal. Output may have slightly more points.

  • triangle_shape_adaptation (float) – Triangle shape adaptation factor. Use 0.0 to disable.

  • triangle_size_adaptation (float) – Triangle size adaptation factor. Use 0.0 to disable.

  • normal_iterations (int) – Number of normal smoothing iterations.

  • lloyd_iterations (int) – Number of Lloyd relaxation iterations.

  • newton_iterations (int) – Number of Newton iterations.

  • newton_m (int) – Number of Newton evaluations per step for Hessian approximation.

  • lfs_samples (int) – Number of samples for size adaptation if triangle size adaptation is not 0.0.

Returns:

The output repaired mesh.

Return type:

Mesh