I can measure the distance between the two surfaces using slicer.modules.modeltomodeldistance but I can’t get the two points that achieve this smallest distance.
Does anyone knows how to get the points achieving the smallest distance given by slicer.modules.modeltomodeldistance
I just discovered this module and AFAIU, the following should solve your problem, at least if your models do not intersect.
If you use absolute_closest_point, you can get one point coordinate from the Absolute array of the output model (the one(s) with the minimum absolute distance). With this coordinate, the polydata of the Target Model can give the second coordinate using FindPoint() and GetPoint().