<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi all!<br><br></div>I would like to rise this old topic <a href="http://geuz.org/pipermail/gmsh/2009/004300.html">http://geuz.org/pipermail/gmsh/2009/004300.html</a><br>
<br></div>I need to get a screenshot of a mesh, and I use the following .geo file for that:<br><br></div><print.geo><br>Merge "mesh.msh";<br>//Draw; // doesn't influence on the result either<br>           // in interactive and non-interactive mode<br>
</div><div>Print "view.jpg";<br>Exit;<br><br></div>I use gmsh with the following options:<br><br></div><div>$gmsh --info<br></div><div><br>Version          : 2.8.2<br>GUI toolkit      : FLTK 1.3.0<br>License          : GNU General Public License<br>
Build OS         : Linux<br>Build options    : Ann Bamg Bfgs Blas(Generic) Blossom Chaco DIntegration Dlopen Fltk Gmm Jpeg Kbipack Lapack(Generic) LinuxJoystick MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen OSMesa OneLab OneLabMetamodel OpenCascade OpenGL OptHom Parser Plugins Post RTree Salome Solver Tetgen(1.5) Voro3D Zlib<br>
Build date       : 20130912<br>Build host       : artemiev-laptop<br>Packager         : artemiev<br>Web site         : <a href="http://www.geuz.org/gmsh/">http://www.geuz.org/gmsh/</a><br>Mailing list     : <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<br></div>So gmsh is built with the OSMesa support.<br></div>When I type the command:<br><br></div>$gmsh print.geo<br><br></div>the gmsh's window opens and closes -> the "view.jpg" file is created.<br></div>
When I try to do the same in non-interactive mode:<br><br></div>$gmsh print.geo -<br><br></div>I have the following output:<br><br>Info    : Running 'gmsh print.geo -' [Gmsh 2.8.2, 1 node, max. 1 thread]<br>Info    : Started on Thu Sep 12 14:58:07 2013<br>
Info    : Reading 'print.geo'...<br>Info    : Reading 'mesh.msh'...<br>Info    : 870 vertices<br>Info    : Vertex numbering is dense<br>Info    : 1710 elements<br>Info    : Done reading 'mesh.msh'<br>
Info    : Writing 'view.jpg'...<br>Info    : Done writing 'view.jpg'<br><br></div>but the "view.jpg" is not created.<br></div>What am I missing?</div><div><br></div>Thanks in advance,<br></div>Mikhail<br>
</div>