[Gmsh] Build the mesh in my own program

Mikhail Artemiev artemiev.mikhail at ngs.ru
Wed Sep 29 04:33:54 CEST 2010


Hi everybody!
I have a question of building mesh using Gmsh in my own 
program.
In my task I need to rebuild mesh many times for different 
geometry. This geometry changes under program execution.
For this purpose I use C-function "system", where I send 
command "gmsh.exe myfile.geo -2". Than I read the mesh 
from file.
It works, but I think that it is incorrect way.
How can I build the mesh not using the resources of OS (in 
my case - Windows XP), i.e. build the mesh in my program?

Thanks
Mikhail Artemiev, PhD student, NSTU