[Gmsh] Import 2D triangle mesh based on PSLG into gmsh

Christophe Geuzaine cgeuzaine at uliege.be
Wed Mar 6 19:07:23 CET 2019


Dear Octavio,

I don't know the format, but using the API you could easily read it (e.g. in Python or Julia) and import it directly. See e.g. api/discrete.py.

Christophe

> On 5 Mar 2019, at 17:37, Octavio Castillo Reyes <ocastilloreyes at gmail.com> wrote:
> 
> Dear all, 
> 
> I get a 2D triangle mesh from triangle code (https://www.cs.cmu.edu/~quake/triangle.html <https://www.cs.cmu.edu/~quake/triangle.html>). I'm using 
> using .poly format (you probably want to see the .poly format in the 
> website: https://www.cs.cmu.edu/~quake/triangle.poly.html <https://www.cs.cmu.edu/~quake/triangle.poly.html>). 
> 
> The .poly file is used to build meshes based on planar straight line graph (PSLG). However 
> I  want to have it in Gmsh format. So, I am wondering whether there is any existing 
> converter to convert, for instance, the attached .poly file into gmsh file.
> 
> I look forward to hearing from anyone who knows about that matter.
> 
> Best regards
> O.
> <Test.poly>_______________________________________________
> 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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190306/55add951/attachment.html>


More information about the gmsh mailing list