I used a boolean common and subtract to divide a torus into two parts. Then I tried to unite both part back into a torus. Here I attach both parts in brep file. Both my code calling BRepAlgoAPI_Fuse and Salome4.1.4 Fuse operation gives non-valid shape. I think it's a bug somewhere in BRepAlgoAPI_Fuse, or should I call other code to achieve my goal?
Thank you for your possible help on this!