I am new to this forum, so I hope that I have published this question in the correct place.
I have been using gmsh for quite some time and have written the attached python code based on gmsh's use of OCC to create a geometry. There appears to be some problem with the way the 2D surface mesh is created. I messaged Christophe at gmsh and he suggested there was a problem with the generation of the geometry, (perhaps the parametric representation of either the curve or the surface). He generated the attached debugSurface.brep for me to show to this community, as well as the attached surface mesh (an OCC generated STL triangulation).
If anyone has any suggestions, that would be greatly appreciated.