Wrong Curve Loop with CAD merge
I am importing a brep file here attached (block with 2 cylindrical bores) with the following code (gmsh 4.8.4)
import gmsh
gmsh.initialize()
gmsh.option.setNumber("General.Terminal", 1)
gmsh.option.setNumber("Mesh.CharacteristicLengthMin", 1.)
gmsh.option.setNumber("Mesh.CharacteristicLengthMax", 3.)
gmsh.merge('Issue_Curve_Loop.brep')
factory = gmsh.model.occ # Sets OpenCASCADE kernel
s = gmsh.model.getEntities(3)
p = gmsh.model.addPhysicalGroup(3, [s[0][1]])
gmsh.model.setPhysicalName(3, p, "block")
gmsh.write("block.geo_unrolled")
gmsh.model.mesh.generate(3)
gmsh.write("block.msh")
gmsh.finalize()
The geo file yields the following error:
Info : Starting subloop 1 in Curve Loop 2 (are you sure about this?)
Error : Curve Loop 2 is wrong
Error : 'block.geo_unrolled', line 194: Could not add line loop
However the mesh looks fine and proceeds without errors. Is there really an issue with this geometry?