Hello,<br><br>I tried to do what you said Bernhard, but I got a error. I created a .geo file with<br><br>Include "my.msh";<br>Exit;<br><br>just to see if gmsh would open my mesh, but and I try to do it there is an error in the console box.
<br>The my.msh is a mesh file using the following format<br><br>$NOD<br>...<br>$ENDNOD<br>$ELM<br>...<br>$ENDELM<br><br>What should I do ?<br>Thanks.<br><br>-- <br>===================================<br>Bernardo Martins Rocha
<br>msn: <a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com</a><br>skype:bernardo.m.rocha<br>===================================<br><br><div><span class="gmail_quote">On 09/11/2007, <b class="gmail_sendername">
Christophe Geuzaine</b> <<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bernhard Kubicek wrote:<br>> yes, you can use geo files also as script files to include meshes, and<br>> create screenshots. As far as I know, it is necessary however to let the<br>> window open, to create a screenshot. But you can also exit in the
<br>> script:<br>> ---view.geo----<br>> Include "your.msh";<br>> //other settings, try '?' button in the 3d-window, an copy paste some<br>> commands<br>> Print Sprintf("out.png");
<br>> Exit;<br>> ----<br><br><br>This is indeed the easiest way to do it.<br><br>Now, if you really need "fully batch" operation (with no window<br>opening), then you'll need to recompile Gmsh from the source code with
<br>the "--enable-osmesa" configure option. When the above script is run in<br>batch mode (say, using "gmsh view.geo -"), the bitmap image will be<br>generated off-screen. Note that this has only been tested on Linux.
<br><br><br>><br>> very nice greetings,<br>>  Bernhard<br>><br>> On Thu, 2007-11-08 at 11:33 -0200, Bernardo Rocha wrote:<br>>> Hello,<br>>><br>>> I'm wondering if is it possible to use run gmsh from the command line
<br>>> and save a .jpg image from a .msh file as input?<br>>><br>>> Thanks<br>>> --<br>>> ===================================<br>>> Bernardo Martins Rocha<br>>> msn: <a href="mailto:bernardo.m.rocha@hotmail.com">
bernardo.m.rocha@hotmail.com</a><br>>> skype:bernardo.m.rocha<br>>> ===================================<br>>> _______________________________________________<br>>> gmsh mailing list<br>>> <a href="mailto:gmsh@geuz.org">
gmsh@geuz.org</a><br>>> <a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a><br>><br>> _______________________________________________<br>> gmsh mailing list<br>
> <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>> <a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a><br>><br>><br><br><br>--<br>Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br><a href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a><br></blockquote></div><br>