[Gmsh] Any command line option to save mesh screenshots as PNG files?
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Sun Feb 2 22:28:10 CET 2014
On 31 Jan 2014, at 21:43, Ziyu ZHANG <buaazhangziyu at gmail.com> wrote:
> Hi all,
>
> I know how to save mesh screenshots to PNG files via GUI (File -> Save as...), but I am wondering if there is any command line to do this?
>
Sure: just add e.g.
Print "file.png";
Exit;
in a text file (say, "myscript") and load this file after the others:
gmsh file.geo myscript
> Best,
>
> Ziyu
>
> --
> Ziyu ZHANG 張子瑜
> PhD Student
> Duke Computational Mechanics Laboratory
> Department of Civil & Environmental Engineering
> Duke University
> Office: 919-660-5031
> _______________________________________________
> 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