[Gmsh] Patch: added export menu

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Mar 11 22:20:01 CET 2016

Hi Rui,

Thanks for the proposed patch. I thing the "File->Save As" menu should actually be replaced completely with "File->Export", as we currently never save the model (.geo) file with Gmsh (since it's created on the fly), and we only save (export) representations of the model (meshes, images, etc.) which can not be read back and produce the current state.

Maybe file a bug with the idea so we won't forget?


> On 04 Mar 2016, at 12:16, Rui Maciel <rui.maciel at gmail.com> wrote:
> Hi, everyone.
> Exporting data to a file, whether it is a mesh definition or image, is
> one of the main use cases of a mesh generator.  I also noticed that
> the question of how to export data is posted often in Gmsh's mailing
> list.  Right now, Gmsh provides this functionality through the "Save
> As..." menu, and although this works well I've found that sometimes it
> would be preferable if this feature could be used in a tad more
> straight-forward way.
> To make this use case a bit more straight-forward, I tweaked Gmsh's
> file menu to add an "Export" menu, which includes options to export
> the mesh, postprocessing info, image, or a movie.  This menu offers
> users a clear way to do what they want to do, and the ability to
> unequivocally discover where they need to go in the GUI to export
> specific bits of information.
> I've attached the patch that implements this feature.  The patch was
> created with regards the current stable version (v2.11.0) as was made
> available through Gmsh's site.
> The patch adds the "Export" menu, the respective submenu entries, and
> a callback for each export option.  The export callbacks were based on
> the file_save_as_cb() callback function.
> The "Save as" menu was left untouched due to potential implications
> regarding backward compatibility.
> If this patch is of any interest, feel free to use it.
> Best regards,
> Rui Maciel
> <0001-Added-export-menu-and-menu-items.patch>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 

Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info

More information about the gmsh mailing list