Ok!<br>Thanks again!<br><br><div class="gmail_quote">On Nov 21, 2007 12:39 PM, Christophe Geuzaine <<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Bernardo Rocha wrote:<br>> Thanks for your support Dave.<br>><br>> It worked fine at home, but in another computer with gmsh 2.0.8 it's not<br>> working. I'm using:<br>><br>> Merge "
somefile.msh";<br>> Print Sprintf("someimage.jpg");<br>> Exit;<br>><br>> But when I look at the image, there is nothing, it's blank, although in<br>> the opened window I can see the mesh.
<br>><br><br></div>Hi Bernardo - Indeed, there is a little bug in Gmsh >= 2.0.0 which<br>prevents the mesh from displaying *while* loading a .geo file. This will<br>be fixed in the next release. You can test the fix by compiling
<br>tomorrow's nightly cvs snapshot.<br><br>Meanwhile, you can use the following workaround: remove 'Merge<br>"somefile.msh"' from your geo file and use<br><br>gmsh somefile.msh yourgeofile.geo<br><br>
instead.<br><br>Christophe<br><br><br><br>> --<br><div class="Ih2E3d">> ===================================<br>> Bernardo Martins Rocha<br>> msn: <a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com
</a> <mailto:<a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com</a>><br>> skype:bernardo.m.rocha<br>> ===================================<br>><br>><br></div><div class="Ih2E3d">> On Nov 16, 2007 1:21 PM, David Colignon <
<a href="mailto:David.Colignon@ulg.ac.be">David.Colignon@ulg.ac.be</a><br></div><div class="Ih2E3d">> <mailto:<a href="mailto:David.Colignon@ulg.ac.be">David.Colignon@ulg.ac.be</a>>> wrote:<br>><br>> Hi Bernardo,
<br>><br>> the solution is to use<br>><br>> Merge "mymesh.msh" ;<br>><br>> instead of Include<br>><br>> Cheers,<br>><br>> Dave<br>><br>> --<br>> David Colignon,
Ph.D.<br>> ACE - Applied & Computational Electromagnetics<br>> Institut Montefiore B28<br>> Université de Liège<br>> 4000 Liège - BELGIQUE<br>> Tél: +32 (0)4 366 37 32<br>> Fax: +32 (0)4 366 29 10
<br></div>> <a href="http://elap.montefiore.ulg.ac.be" target="_blank">http://elap.montefiore.ulg.ac.be</a> <<a href="http://elap.montefiore.ulg.ac.be" target="_blank">http://elap.montefiore.ulg.ac.be</a>><br>
<div class="Ih2E3d">><br>><br>> Bernardo Rocha wrote:<br>> > Hello,<br>> ><br>> > I tried to do what you said Bernhard, but I got a error. I created a<br>> > .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<br>> there is<br>> > 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>> <mailto:<a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com</a>><br>> <mailto:<a href="mailto:bernardo.m.rocha@hotmail.com">
bernardo.m.rocha@hotmail.com</a><br>> <mailto:<a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com</a>>><br>> > skype:bernardo.m.rocha<br>> > ===================================
<br>> ><br>> > On 09/11/2007, * Christophe Geuzaine* <<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a><br>> <mailto:<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>
><br></div><div><div></div><div class="Wj3C7c">> > <mailto: <a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a> <mailto:<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>>>> wrote:
<br>> ><br>> > Bernhard Kubicek wrote:<br>> > > yes, you can use geo files also as script files to include<br>> > meshes, and<br>> > > create screenshots. As far as I know, it is necessary
<br>> however to<br>> > let the<br>> > > window open, to create a screenshot. But you can also exit<br>> in the<br>> > > script:<br>> > > ---
view.geo----<br>> > > Include "your.msh";<br>> > > //other settings, try '?' button in the 3d-window, an copy<br>> 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<br>> code with
<br>> > the "--enable-osmesa" configure option. When the above script<br>> is run in<br>> > batch mode (say, using "gmsh view.geo -"), the bitmap image<br>> will be
<br>> > generated off-screen. Note that this has only been tested on<br>> 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
<br>> command<br>> > 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>> <mailto:<a href="mailto:bernardo.m.rocha@hotmail.com">bernardo.m.rocha@hotmail.com</a>><br></div></div><div class="Ih2E3d">> > <mailto: <a href="mailto:bernardo.m.rocha@hotmail.com">
bernardo.m.rocha@hotmail.com</a><br></div><div class="Ih2E3d">> <mailto:<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> <mailto:<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>><br></div>> <mailto:<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a> <mailto:<a href="mailto:gmsh@geuz.org">
gmsh@geuz.org</a>>><br><div class="Ih2E3d">> > >> <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>> > ><br>
> > > _______________________________________________<br>> > > gmsh mailing list<br></div>> > > <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a> <mailto:<a href="mailto:gmsh@geuz.org">
gmsh@geuz.org</a>> <mailto:<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br><div class="Ih2E3d">> <mailto:<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>>><br>> > > <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">
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/%7Egeuzaine" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br></div>> <<a href="http://www.montefiore.ulg.ac.be/%7Egeuzaine" target="_blank">
http://www.montefiore.ulg.ac.be/%7Egeuzaine</a>><br>> ><br>> ><br>> ><br>> ><br>> ------------------------------------------------------------------------<br>><br>> >
<br>> > _______________________________________________<br><div class="Ih2E3d">> > gmsh mailing list<br>> > <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a> <mailto:<a href="mailto:gmsh@geuz.org">
gmsh@geuz.org</a>><br>> > <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> gmsh mailing list<br>> <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br></div><div><div></div><div class="Wj3C7c">> <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">
http://www.geuz.org/mailman/listinfo/gmsh</a><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/%7Egeuzaine" target="_blank">
http://www.montefiore.ulg.ac.be/~geuzaine</a><br></div></div></blockquote></div><br><br clear="all"><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>===================================