<div dir="ltr"><div>Hi Mauro, <br></div><div><br></div><div>The <span style="font-family:monospace">setMeshSize </span>function takes a list of dimension, tag pairs aka dimtags. <br></div><div><br></div><div>Since it only handles points (dimension 0), I believe a list like <br></div><div>[(0, 1), (0, 2)] <br></div><div>is fine, but a list like <br></div><div>[(1, 1), (0, 2)] <br></div><div>wouldn't be handled properly. <br></div><div><br></div><div>All the entity types are:</div><div>0 = points <br></div><div>1 = lines</div><div>2 = 2d surfaces <br></div><div>3 = volumes <br></div><div><br></div><div>There is another option called <span style="font-family:monospace">CharacteristicLengthMax</span> that globally sets the maximum mesh element size. <br></div><div>I'm not sure whether this gives the same results as calling <span style="font-family:monospace">setMeshSize </span>on every point.</div><div>You can set it using the C++ function <code>gmsh::option::setNumber<span style="font-family:arial,sans-serif">.</span></code>
</div><div><br></div><div>Here is more info from the docs:</div><div>
<a href="http://gmsh.info/doc/texinfo/gmsh.html#Mesh-options-list">http://gmsh.info/doc/texinfo/gmsh.html#Mesh-options-list</a> <br></div><div><br></div><div>
<dt><code>Mesh.CharacteristicLengthMax</code>
<a name="index-Mesh_002eCharacteristicLengthMax"></a>
</dt>
<dd><p>Maximum mesh element size<br>
Default value: <code>1e+22</code><br>
Saved in: <code>General.OptionsFileName</code>
</p>
</dd></div><div><br></div><div>Sincerely, <br></div><div>Max <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 17, 2019 at 2:12 PM Mauro Corbo <<a href="mailto:ing.maurocorbo@gmail.com">ing.maurocorbo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am plyling around Gmsh developer version with vc++ 2017 Comunity Ed.<div>I would import a Step/Iges file with the function :<br>" GMSH_API void importShapes(const std::string & fileName,........"), and I would remesh with different mesh size, to get a more uniform mesh.<br><br>I checked for "setMeshSize ..." function<br>But I don't understand this : " Currently only entities of dimension 0 (points) are handled."</div> What does it mean only points are handled?<div>Is it possible have different mesh sizes,plying on "size" parameters ,like in attached dPDF?<br><div>Thanks in advance </div><div><br></div><div> </div></div></div>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>