[Gmsh] handling stp file (example attached)

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Feb 26 11:14:12 CET 2012


On 21 Feb 2012, at 17:12, Sangpil Yoon wrote:

> Thanks for your help. It worked smoothly as I wanted.
> One last thing to confirm.
> 
> Those two methods are not in command line format.
> i have to save it in a script (.geo)  and run it with gmsh command.
> 
> can i do it directly on command line?  Or even in GUI form?
> 
> Thank YOU very much, Professor Christophe
> 

You could create a generic script file with the commands that will not change, e.g. 'Mesh 2; Coherence Mesh;'" and merge both the mesh and the script file from the command line:

gmsh file.msh script -


> 
> 
> 
> You can either do:
> 
> Merge "file.msh";
> Coherence Mesh;
> 
> or force meshing within the script:
> 
> // geo definition
> Mesh 2;
> Coherence Mesh;
> 
> 

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