<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 9 Feb 2018, at 03:40, Savio Poovathingal <<a href="mailto:poova002@umn.edu" class="">poova002@umn.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hello, <br class=""><br class=""></div>I am using gmsh to generate a 2d grid on a surface and output in stl format with double precision. </div></div></div></div></div></blockquote><div><br class=""></div><div>You’ll need to hack the code (GmshIO_STL.cpp), as the STL spec specifies single precision. See e.g. <a href="https://en.wikipedia.org/wiki/STL_(file_format)" class="">https://en.wikipedia.org/wiki/STL_(file_format)</a></div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">I cannot find a way to do this. I am sure it's a simple hack but I have not been able to figure it out. I need double precision because the solver I use needs triangle info with double precision. Unfortunately, with single precision, flow is "leaking" into the surface because it is not watertight. <br class=""><br class=""></div>Any help is appreciated. <br class=""><br class=""></div>Thanks, <br class=""></div>Savio<br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span class="">Savio James Poovathingal<br class="">Postdoctoral Research Scholar<br class=""><font class="">Molecular Beam Lab<br class="">Department of Chemistry and Biochemistry<br class="">Montana State University<br class="">Bozeman<br class="">
Montana, USA 59717. </font></span></div></div></div></div>
</div></div></div></div></div></div>
_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">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</div></div>
</div>
<br class=""></body></html>