Duplicates in BRep connectivity with cad + msh4 import
There are duplicates in the Gmsh Brep internal connectivity storage when loading a CAD model and a mesh separately, with the msh4 format. For example:
gmsh model.step -o model.msh
gmsh model.step model.msh
The sub-entities are duplicated (e.g. same face multiple times in gr->faces()). But there is no issue when using "-format msh2" in the first mesh export (because BRep not stored in the mesh file I guess?).
To reproduce, there is a simple example attached (square.geo + test.py).
./gmsh square.geo -2 -o square.msh -format msh4
python test.py square.geo
> faces: [(2, 1)]
> (2, 1) - bdr: [(1, 1), (1, 2), (1, 3), (1, 4)]
(normal)
python test.py square.msh
> faces: [(2, 1)]
> (2, 1) - bdr: [(1, 1), (1, 2), (1, 3), (1, 4)]
(normal)
python test.py square.geo square.msh
> faces: [(2, 1)]
> (2, 1) - bdr: [(1, 1), (1, 2), (1, 3), (1, 4), (1, 1), (1, 2), (1, 3), (1, 4)]
(not normal, but result ok when using -format msh2)