<div dir="ltr">Dear all,<div><br></div><div>I'm trying to use gmsh's CSG functionality to create a simple mesh (box with spherical hole in it), but I would like to locally change the edge-length around the spherical surface, and have the rest of the mesh smoothly change in size away from this surface. Does anyone know how to make this work?</div><div><br></div><div>Example code:</div><div><br></div><div>----</div><div><div>SetFactory("OpenCASCADE");</div><div>Mesh.CharacteristicLengthMin = 0.2;</div><div>Mesh.CharacteristicLengthMax = 0.2;</div><div>v0 = newv;</div><div>Sphere(v0) = {0.0, 0.0, 0.0, 0.5}; //How can I make the edge-lengths on the sphere surface different from 0.2?</div><div>v1 = newv;</div><div>Box(v1) = {-1, -1, -1, 2, 2, 2};</div><div>bo1[] = BooleanDifference{Volume {v1}; Delete;} {Volume {v0}; Delete;};</div></div><div>----<br></div><div><br></div><div>Many thanks in advance,</div><div>Adam</div></div>