I have the following problem: I want to join two TopoDS_Shapes that have a coincide face. For example two cubes with the same side length 1, one of them located in (0,0,0), the other in (0,0,1). What I want is a TopoDS_Shape consisting of 7 faces (the six outer faces of the composed object and the coincide face).
I tried it with BRepAlgoAPI_Fuse which returned a shape with 10 faces, with BRepFeat_Gluer I got 6 faces and with BRepAlgo_Sewing and TopoDS_Compound 12 faces (the coincide face exists two times in the new object).
Does anyone know how to join shapes in a way that coincide faces exist exactly one time in the joined object?
I know that similar questions have already been asked in this forum, but I couldn't find a sufficient answer.
Thanks in advance