geo vs api/C++ difference
There is a geometry with two lines and a wing profile.
The test.geo file draws geometry correctly (left side picture). Extra intermediate points for splines are deleted. It remains only 7 points.
The same logic for API/C++ is implemented in test.cpp (my first gmsh/C++ code). The difference from test.geo is that two gmsh::model::occ::syncronize() are added. The first time that it is needed to have access to points by gmsh::model::getEntities, and the second time it is needed to get upper line in geometry. If both syncronize() are present (middle picture) than the geometry restores extra points. If the second syncronize() is omitted then the upper line does not appear on the screen (right side picture). So, in both ways we have wrong pictures with API/C++. Windows'10, gmsh version 4.10.4.
Any help will be highly appreciated. Thank you in advance.