[Gmsh] Writing a mesh formatter and an output reader

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Nov 19 00:30:35 CET 2014


> On 18 Nov 2014, at 18:15, Jose A. Abell M. <jaabell at ucdavis.edu> wrote:
> 
> Hi GMSH,
> 
> What would it take for me to write a new mesh formatter so that GMSH writes the mesh directly in my format. Also, a similar question about reading my output format directly.
> 

Dear Jose - It's quite simple to write new mesh I/O routines. Just follow one of the many existing ones in gmsh/Geo/GModelIO_*.cpp ; for example Geo/GModelIO_MESH.cpp.

Christophe

> I'm working with rather large meshes where conversion to and from GMSH format would take enough time for me to consider developing these features myself. I've done it before for a post-processor.
> 
> Please let me know.
> 
> Regards,
> 
> --
> 
> Jose Abell 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine