Equalize the number of points two CenterlineComputationModels

Hi Slicer Developers

I have two models with the names of CenterlineComputationModelMR and CenterlineComputationModelCT with the following information:
CenterlineComputationModelMR
Mesh Type: Surface Mesh (vtkPolyData)
Surface Area: 0.00 mm2
Volume: 0.00 mm3
Number of Points: 177

CenterlineComputationModelCT
Mesh Type: Surface Mesh (vtkPolyData)
Surface Area: 0.00 mm2
Volume: 0.00 mm3
Number of Points: 277

I want to make the same number of points such as 260 points. How can I do it?
I need to do it(equalize the number of points) so I want use them as inputs to “Scattered Transform” modules.

Please guide me,
Shahrokh

Determining point correspondences between two vessel trees is a difficult task. It is not just a matter of resampling a line.

Probably a more robust and simpler way would be to compute a distance map image from the trees and use intensity-based image registration to compute transform between them. These steps are performed by Segment registration extension. You just need to convert the input models to segments in a Segmentation node to be able to use it. Segmentations module import/export feature should be usable if the centerlines are tubular shapes. If centerlines are just lines then you can convert it to tubes by applying VTK tube filter.