Invalid shapes when BRepBuilderAPI_MakeWire is called (when using OCC in Gmsh)

Hello everyone and OCC team,

The following script reproduces an issue while using Gmsh (please, follow the "FIXME" tag). It is a .geo file, so just change the extension to .geo.

For a specific aspect ratio (see Dw = 0.001, line 12) of two geometry entities (i.e., a very tiny wellbore/cylinder within a large reservoir), the coordinates of a specific point of a Circle (that composes the cylinder) are unintentionally changed after calling a curve loop command, which generates incompatible surfaces.

I may be missing something here, but the script works well for higher values of Dw (cylinder diameter, e.g., Dw=0.009). I am using Gmsh V4.13.1.

I have also asked the Gmsh team, and this is the response for such an issue:

"Christophe Geuzaine commented:

I can reproduce the issue: OpenCASCADE seems to create invalid shapes when BRepBuilderAPI_MakeWire is called. I have tested with the latest OCC git master and the issue is still there: I would suggest you report this directly to the OCC developers, as I don't see what we can do about it on the Gmsh side."

Any help would be appreciated.
Thanks in advance.
Thiago

Attachments: 
Dmitrii Pasukhin's picture

Hello,OCCT team is not familiar with gmsh functionality. Please create an issue in GitHub with options to reproduce by OCCT team by C++ code or draw command or equivalent (based only on OCCT, without gmsh)

https://github.com/Open-Cascade-SAS/OCCT/issues/new/choose

Best regards, Dmitrii.