[Gmsh] generation of screenshots in non-interactive mode

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Apr 29 08:37:02 CEST 2009


Tom De Vuyst wrote:
> Hi,
> 
> I have a question regarding the generation of screenshots in non-interactive mode.
> 
> Executing the tutorial file t8.geo:
> 
>   gmsh t8.geo 
> 
> generates images.
> 
> However doing this in non-interactive 'batch' mode:
> 
>   gmsh t8.geo -
> 
> does not, and the following message is printed:
> 
>   Warning : Offscreen rendering not available in this version
> 
> Can the batch mode be used to generate images? In the version history the line
> referring to OSMesa seems to suggest it should:

Hi Tom - You need to compile Gmsh with Mesa's offscreen rendering lib 
for this to work (./configure --enable-osmesa)



> 
> 2.0 (Feb 5, 2007): new geometry and mesh databases, with support for
> STEP and IGES import via OpenCascade; complete rewrite of geometry and
> mesh drawing code; complete rewrite of mesh I/O layer (with new native
> binary MSH format and support for import/export of I-deas UNV, Nastran
> BDF, STL, Medit MESH and VRML 1.0 files); added support for incomplete
> second order elements; new 2D and 3D meshing algorithms; improved
> integration of Netgen and TetGen algorithms; removed anisotropic
> meshing algorithm (as well as attractors); removed explicit region
> number specification in extrusions; option changes in the graphical
> interface are now applied instantaneously; added support for offscreen
> rendering using OSMesa; added support for SVG output; added string
> labels for Physical entities; lots of other improvements all over the
> place.
> 
> Regards,
> 
> Tom De Vuyst
> 


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