PvAlign#

class polpo.preprocessing.mesh.registration.PvAlign(target=None, max_landmarks=100, max_mean_distance=1e-05, max_iterations=500, check_mean_distance=True, start_by_matching_centroids=True)[source]#

Bases: PreprocessingStep

Align a dataset to another with ICP.

https://docs.pyvista.org/api/core/_autosummary/pyvista.datasetfilters.align

apply(data)[source]#

Apply step.

Parameters:

data (pv.Polydata or tuple[pv.PolyData; 2]) – (source, target) meshes.

Returns:

mesh (pv.PolyData) – Source aligned to target.