[Gmsh] Sharp corners and physicals in .stl

F. A. Portela felipe.alves.portela at gmail.com
Thu Mar 21 13:40:56 CET 2013


Hi Martin,

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.

Any tips on improving the quality of the mesh?

Cheers,
Felipe


--
Felipe Alves Portela
MSc student in Aerospace Eng. at TU Delft
http://www.linkedin.com/in/felipealvesportela


On 21 March 2013 13:00, Martin Vymazal <martin.vymazal at vki.ac.be> wrote:

> **
>
> Hi Felipe,
>
>
>
> 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:
> http://en.wikipedia.org/wiki/STL_(file_format) ). 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.
>
>
>
> The behaviour you observe is not a shortcoming of gmsh, but a consequence
> of the stl file format specification.
>
>
>
> Best regards,
>
>
>
> Martin Vymazal
>
>
>
> On Tuesday 19 March 2013 12:12:05 F. A. Portela wrote:
>
> Hello all,
>
>
> I have two issues I require help with.
>
>
> 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?
>
>
> 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.
>
>
> Thanks in advance!
>
> Felipe
>
>
> --
>
> Felipe Alves Portela
>
> MSc student in Aerospace Eng. at TU Delft
>
> http://www.linkedin.com/in/felipealvesportela
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130321/ea24f984/attachment.html>


More information about the gmsh mailing list