<div dir="ltr">Hi Gmsh developers, <div><br></div><div>I would like to create nonuniform mesh on some geometry. I tested a simple case with the script below and found threshold field work unexpectedly. </div><div><br></div><div>Basically, I created a rectangle and wish to have a mesh with high density near the edges. I expect to see the mesh as shown by the color. But instead I got uniform mesh. Is it expected? Thanks you! </div><div><br></div><div><div><img src="cid:ii_kauu7etr0" alt="image.png" width="369" height="448"><br></div></div><div><br></div><div><br></div>SetFactory("OpenCASCADE");<br>Rectangle(1) = {-0.9, -0, 0, 1, 0.5, 0};<br><br>Field[1] = Distance;<br>Field[1].EdgesList = {1, 2, 3, 4};<br><br>Field[2] = Threshold;<br>Field[2].DistMax = 0.2;<br>Field[2].DistMin = 0.1;<br>Field[2].IField = 1;<br>Field[2].LcMax = 0.5;<br>Field[2].LcMin = 0.01;<br><div>Background Field = 2; </div><div><br><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Tian</div></div></div></div></div></div></div>