<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div>Here's an example, for Gmsh 3.0.2:<div class=""><br class=""></div><div class="">SetFactory("OpenCASCADE");<br class=""><br class=""></div><div class="">Box(1) = {-0, 0, 0, 1, 1, 1};<br class=""><br class="">p() = PointsOf{ Volume{1}; };<br class="">Characteristic Length{p()} = 0.2;<br class=""><br class="">Rectangle(7) = {0.4, 0.7, 0.2, 0.3, 0.3, 0};<br class="">Rectangle(8) = {-0.2, 0.3, 0.5, 0.3, 0.3, 0};<br class="">Rectangle(9) = {0.8, -0.2, 0.5, 0.3, 0.3, 0};<br class="">Rectangle(10) = {0.3, 0.3, 0.5, 0.3, 0.3, 0};<br class=""><br class="">b() = BooleanFragments{ Volume{1}; Delete; }{ Surface{7:10}; Delete; };<br class=""><br class="">p() = PointsOf{ Surface{b({1:6})}; };<br class="">Characteristic Length{p()} = 0.04;<br class=""><br class=""><br class=""><img apple-inline="yes" id="AA6B489A-8367-42BF-8CF1-E6827CA1B0C2" src="cid:4DD9E1AE-528B-4F92-8426-08B223EBCFF1@home" class=""><br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 4 May 2017, at 12:30, Jeremy Theler <<a href="mailto:jeremy@seamplex.com" class="">jeremy@seamplex.com</a>> wrote:<br class=""><br class=""><br class=""><blockquote type="cite" class="">I have found an another way to import a brep file. However I can't<br class="">understand how the characteristic sizes are applied. I want to apply a<br class="">more dense mesh around the internal surfaces without the cost of a<br class="">field command. <br class=""></blockquote><br class="">I don't either.<br class=""><br class="">But what I do is I set the characteristic length of all points to a<br class="">basic lc<br class=""><br class="">p[] = Point "*";<br class="">Characteristic Length { p[] } = lc;<br class=""><br class="">and then set a lower value for some of the points I want to refine<br class="">around. You have to known the id of such points, though.<br class=""><br class="">Is there any better solution without falling back to a background field?<br class=""><br class="">--<br class="">jeremy<br class=""><a href="http://www.seamplex.com" class="">www.seamplex.com</a><br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">gmsh mailing list<br class="">gmsh@onelab.info<br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></blockquote><br class=""><div class="">-- <br class="">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info<br class=""></div><br class=""></div></body></html>