Update: like this it works!
border_edges = vtk.vtkFeatureEdges()
clean_border_edges = vtk.vtkCleanPolyData()
border_strips = vtk.vtkStripper()
border_polyline = vtk.vtkPolyData()
I just changed the line
I guess that the reason is that the cell called here is a polyline, generated by vtkStripper, that combines all the single lines in the correct order.
However, if the surface is composed of two disconnected parts, I get two polylines, and in this case I am still not able to add all the points properly, and I end up with just the border of the first part.
I thought I can append the points from the second cell (or more cells) like this
for i in range(border_polyline.GetNumberOfCells()-1):
But for some reason I don’t understand it does not work. It appears it replaces the points of the first part with those of the second one.
Suggestions? Thanks very much!