I'm trying to build an open cascade model from a triangulation. My current approach goes like this:
- for each triangle create a wire with BRepBuilderAPI_MakePolygon
- create a face from the wire with BRepBuilderAPI_MakeFace
- Use BRep_Builder to add the created faces to a shell
Now I'd like to merge neighbored triangles into one face, so I don't have to see the edges from the original triangulation. Is there a way to do that in open cascade? I already tried connecting the faces with BRepBuilderAPI_Sewing or BRepAlgoAPI_Fuse, but the edges still remain after these operations. I also tried BRepAlgoAPI_Fuse, which threw several exceptions.
If it's not possible to merge two adjescent faces and remove the connecting edges, is there a way to build a surface from the triangulation?