When using Compound Curve, mesh size failure is controlled via Transfinite Curve.
I made a simple example, by Compound Surface {1, 2} to see the two surfaces as a composite surface, and also used Compound Curve, in order to better control the size of the mesh, I would like to control the mesh size according to the length of the curve, I only found Transfinite Curve, according to the length of the setCompound Curve to set the number of control points to control the mesh size, but when the curve is setCompound, the Transfinite command fails, the Transfinite command for the curve that is not setCompound succeeds. I would like to know how should I assign mesh points for this Compound Curve? The mesh generation effect image and geo file are as follows:compound1.geo The contents of the geo file are as follows // Gmsh project created on Fri Mar 01 15:24:45 2024
SetFactory("OpenCASCADE");
//+ Point(1) = {0, 0, 0, 1.0};
//+ Point(2) = {1, 0, 0, 1.0};
//+ Point(3) = {1, 1, 0, 1.0};
//+ Point(4) = {0, 1, 0, 1.0};
//+ Line(1) = {1, 2};
//+ Line(2) = {2, 3};
//+ Line(3) = {3, 4};
//+ Line(4) = {4, 1};
//+ Curve Loop(1) = {4, 1, 2, 3};
//+ Plane Surface(1) = {1};
//+ Point(5) = {1, 1.5, 0, 1.0};
//+ Point(6) = {0, 1.5, 0, 1.0};
//+ Line(5) = {3, 5};
//+ Line(6) = {5, 6};
//+ Line(7) = {6, 4};
//+ Curve Loop(2) = {6, 7, -3, 5};
//+ Plane Surface(2) = {2};
//+ Compound Curve {4, 7};
//+ Compound Curve {2, 5};
//+ Compound Surface {1, 2};
//+ Transfinite Curve {7, 5} = 5 Using Progression 1;
//+ Transfinite Curve {6, 3, 4, 2, 1} = 10 Using Progression 1;