<div dir="ltr">Hi Martin,<div><br></div><div style>Yes, my goal was to simply export the surfaces to use them with a different application. Regarding the physicals, shouldn't it be possible to create a "solid" for each physical? It seems like this is done in the WriteSTLExtFormat function in writeuser.cpp so that's why I asked.</div>

<div style><br></div><div style>Any tips on improving the quality of the mesh?</div><div style><br></div><div style>Cheers,</div><div style>Felipe</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>

<br>--</div>Felipe Alves Portela<div>MSc student in Aerospace Eng. at TU Delft</div><div><a href="http://www.linkedin.com/in/felipealvesportela" target="_blank">http://www.linkedin.com/in/felipealvesportela</a> </div></div>

</div>
<br><br><div class="gmail_quote">On 21 March 2013 13:00, Martin Vymazal <span dir="ltr"><<a href="mailto:martin.vymazal@vki.ac.be" target="_blank">martin.vymazal@vki.ac.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>
<div style="font-family:'Roboto';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi Felipe,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> a quick note regarding the stl file format: it can only hold triangles without any additional information such as physical tags of gmsh (see here: <a href="http://en.wikipedia.org/wiki/STL_(file_format)" target="_blank">http://en.wikipedia.org/wiki/STL_(file_format)</a> ). Stl does not save any information about the connectivity of your mesh either. More importantly, your mesh is 3D, so if you export to stl, you'll lose your volume elements, because they cannot be represented in the stl file.</p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> The behaviour you observe is not a shortcoming of gmsh, but a consequence of the stl file format specification.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Best regards,</p><span class="HOEnZb"><font color="#888888">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">  Martin Vymazal</p></font></span><div><div class="h5">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Tuesday 19 March 2013 12:12:05 F. A. Portela wrote:<br></p>
<p style="margin-top:12px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Hello all,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">I have two issues I require help with.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Firstly, I am trying to mesh a MVG (see attached file) to use in OpenFOAM. I tried making both unstructured and structured (dividing the doain into blocks), but with no success: the mesh near the leading edge of the MVG is always of very poor quality... Does anyone have any idea on how to solve this? </p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Second issue, I noticed that when exporting a mesh to .stl the physical tags are not preserved and everything is saved as a single object. I was wondering if there is a way to do this without changing the code. I noticed there is already the option to save all entities but it seems like this is always triggered, no matter what. </p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Thanks in advance!</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Felipe</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br>--</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Felipe Alves Portela</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">MSc student in Aerospace Eng. at TU Delft</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><a href="http://www.linkedin.com/in/felipealvesportela" target="_blank"><span style="text-decoration:underline;color:#0057ae">http://www.linkedin.com/in/felipealvesportela</span></a>  </p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br><br></p></div></div></div><br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br></div>