Regression in Compound Surface
The following code used to run fine with 4.3.0 and older but is broken in 4.4.0:
SetFactory("OpenCASCADE");
Point(1) = {0, 0, 0};
Point(2) = {1, 0, 0};
Point(3) = {0, 1, 0};
Point(4) = {1, 1, 0.5};
Point(5) = {0.5, 0.5, 0};
Point(6) = {0.5, 1, 0.1};
Point(7) = {1, 0.5, 0.1};
Line(1) = {1, 2};
Line(2) = {1, 3};
Spline(3) = {2, 5, 3};
Spline(4) = {2, 7, 4};
Spline(5) = {3, 6, 4};
Curve Loop(1) = {1, 2, 3};
Curve Loop(2) = {3, 4, 5};
Surface(1) = {1};
Surface(2) = {2};
Compound Surface{Surface{:}};
Mesh 2;
The log contains
Info : Meshing 2D...
Info : Meshing surface 1 (BSpline surface, MeshAdapt)
Info : Meshing surface 2 (BSpline surface, MeshAdapt)
Info : Meshing surface 1 (BSpline surface, MeshAdapt)
SEAM POINT!!!!
= X = Error : error
in hxtBoundariesGetNumberOfEdgesOfLineLoop -> /builds/gmsh/gmsh/contrib/hxt/hxt_edge.c:100
- trace - hxtMeanValuesCompute -> /builds/gmsh/gmsh/contrib/hxt/hxt_mean_values.c:135 (error)
- trace - createGeometry -> /builds/gmsh/gmsh/Geo/discreteFace.cpp:469 (error)
Info : Done meshing 2D (0.075808 s)
and the problem is that the compound surface is not created. Instead the two surfaces meshed separately remain.
Note that the problem disappears when the splines are replaced by lines:
Line(3) = {2, 3}; //Spline(3) = {2, 5, 3};
Line(4) = {2, 4}; //Spline(4) = {2, 7, 4};
Line(5) = {3, 4}; //Spline(5) = {3, 6, 4};