From mesh to pipe

Hi All,

I have some cad files of pipes from which I can only extract meshes. Starting from this set of meshes, my goal is to use the vertices of these meshes (8 points for each faces of pipes) to create surfaces whose centers of gravity can be used to create lines and finally pipes. My problem is that I can’t group points into 8-point groups with the right order.