itkwasm_mesh_filters.smooth_remesh_asyncΒΆ
Module ContentsΒΆ
FunctionsΒΆ
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