[Gmsh] mesh generation command from socket connection?

Gerd Meiser gerdmeiser at yahoo.com
Thu May 1 01:21:25 CEST 2008


>Gerd Meiser wrote:
>> Dear Gmsh users!
>> 
>> Finally I found out how to use the utils/solvers/c++/interactive.cpp 
>> example to control gmsh through sockets.
>> 
>> However, I am only able to add points, lines and surfaces, but I don't 
>> know the command to actually generate the mesh and save it to a file. 
>> Sounds silly, but I couldn't find it in the reference manual.
>> 
>> Would you please tell me the command? (I hope there is one)
>
>Hi Gerd - there is none... It might seem a bit weird, but it's because 
>in "batch" mode usually you mesh by specifying a special command line 
>argument (e.g. "-3" for 3-D mesh). It's something we should add in a 
>future release.

So the socket interface can only be used for something like macros in an interactive Gmsh session? It is not intended to use the Gmsh functionality from other programs?

>What do you plan to use the socket interface for? (Maybe using Gmsh 
>directly as a library would better fit your application?)

Probably this is exactly what I need. I want to use Gmsh as a mesh generator within a VTK application. Can I find documentation and examples how to use Gmsh as library anywhere?
 
Thank you

G. Meiser


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ