I've been trying to "glue" two or more coplanar faces together. On the file attached I show such an example where there are 5 faces to be "glued". The thing is, I want to get rid of all the inner wires, so that only the "convex hull" is left and I can create a face with it.
The problem is, I've got an algorithm that consists of fusing all faces together and then using Prs3d_ShapeTool to iterate my fused shape, select all wires that have only 1 neighbour, and then using a makewire to join then, and finally generate a face.
Seems perfect, but after fusing more than 2 or 3 faces I've been facing a problem. Some wires are missing. Even if I iterate my fused shape using TopExp_Explorer eExpl(fused_shape, TopAbs_EDGE) these wires are missing, but if I iterate my fused shape using TopExp_Explorer fExpl(fused, TopAbs_FACE), all the faces are there, even the one that uses the missing wire.
On the attached file it shows another screenshot showing my missing wire.
What I expect to get is also shown on the attached file, beign the bottom screenshot, using a smaller number of fused faces.
Can anyone help me with this? Am I doing the wrong approach?