Output the edges of a mesh file

Hello 

I have the following mesh

I would like to be able to recover the faces or edges if possible in automatic, the transformation on the surface generates me multiple surfaces (which does not follow the edges of the faces)