Mesh is so different while using OpenCascade and Point-Ellipse for circle
For point-ellipse
cl0 = 0.05;
clf = 0.01;
Point(1) = {5,0,0,cl0};
Point(2) = {5,5,0,cl0};
Point(3) = {0,0,0,cl0};
Point(4) = {0,5,0,cl0};
Point(5) = {2.5,2.5,0,clf};
Point(6) = {2.5,2.6,0,clf};
Point(7) = {2.4,2.5,0,clf};
Point(8) = {2.5,2.4,0,clf};
Point(9) = {2.6,2.5,0,clf};
Ellipse(1) = {6,5,6,7};
Ellipse(2) = {7,5,6,8};
Ellipse(3) = {8,5,6,9};
Ellipse(4) = {9,5,6,6};
Line(5) = {3,1};
Line(6) = {4,3};
Line(7) = {2,4};
Line(8) = {1,2};
Line Loop(9) = {1,2,3,4};
Line Loop(10) = {6,5,8,7};
Plane Surface(11) = {10,9};
Mesh.SaveGroupsOfNodes = 1;
Mesh.Smoothing = 3;
Mesh.Algorithm = 2;
if I use OpenCascade
// Gmsh project created on Tue Sep 20 19:17:54 2022
SetFactory("OpenCASCADE");
//+
Point(1) = {0, 0, 0};
//+
Point(2) = {5, 0, 0};
//+
Point(3) = {5, 5, 0};
//+
Point(4) = {0, 5, 0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 3};
//+
Line(3) = {3, 4};
//+
Line(4) = {4, 1};
//+
Circle(5) = {2.5, 2.5, 0, 0.1, 0, 2*Pi};
//+
Curve Loop(1) = {4, 1, 2, 3};
//+
Curve Loop(2) = {5};
//+
Plane Surface(1) = {1, 2};
Mesh.MeshSizeFromCurvature = 100;
Mesh.MeshSizeMax = 0.05;
Mesh.Smoothing = 3;
I think the first one is better, is there any way to improve the second one?
Edited by J Powell