[Gmsh] stl with double precision

Savio Poovathingal poova002 at umn.edu
Tue Feb 13 20:42:14 CET 2018


Prof. Geuzaine,

Thanks a lot for guiding me to the correct file in the source code. I
hacked it and it works.

Thanks and Regards,
Savio

On Mon, Feb 12, 2018 at 12:24 AM, Christophe Geuzaine <cgeuzaine at uliege.be>
wrote:

>
>
> On 9 Feb 2018, at 03:40, Savio Poovathingal <poova002 at umn.edu> wrote:
>
> Hello,
>
> I am using gmsh to generate a 2d grid on a surface and output in stl
> format with double precision.
>
>
> You’ll need to hack the code (GmshIO_STL.cpp), as the STL spec specifies
> single precision. See e.g. https://en.wikipedia.org/wiki/STL_(file_format)
>
>
>
> 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.
>
> Any help is appreciated.
>
> Thanks,
> Savio
>
> --
> Savio James Poovathingal
> Postdoctoral Research Scholar
> Molecular Beam Lab
> Department of Chemistry and Biochemistry
> Montana State University
> Bozeman
> Montana, USA 59717.
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
>
>> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
>
> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>
>


-- 
Savio James Poovathingal
Postdoctoral Research Scholar
Molecular Beam Lab
Department of Chemistry and Biochemistry
Montana State University
Bozeman
Montana, USA 59717.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180213/c3ebdf49/attachment.html>


More information about the gmsh mailing list