[Gmsh] Step model view export as png from command line/script

SAHA, SUDIPTA sahas at email.sc.edu
Tue Aug 25 20:52:58 CEST 2020

Yes, this can be done by 'gmsh' command from the terminer. typically you have to run gmsh by : gmsh filename.geo -  ​('-' will invoke the command mode operation). Now you filename.geo script should contain necessary lines for the desired performance. For example, if you want to construct 3D mesh, corresponding line is Mesh 3. Similarly you can export files by putting 'export' command in the script. The lists are given in the manual.


Best Regards
Sudipta Saha, MS, EIT
Spent Fuel Modeling Intern, Idaho National Laboratory

PhD Candidate in Mechanical Engineering
Reacting System and Advanced Energy Research Lab
Graduate Council Representative, Graduate Student Association
LinkedIn<https://www.linkedin.com/in/sudipta-saha-usc/> | ResearchGate<https://www.researchgate.net/profile/Sudipta_Saha13> | GoogleScholar<https://scholar.google.com/citations?user=xDVKlBcAAAAJ&hl=en> | Website<https://sudiptasaha.weebly.com/>

From: gmsh <gmsh-bounces at ace20.montefiore.ulg.ac.be> on behalf of Zuheyr Alsalihi <alsalihi at vki.ac.be>
Sent: Tuesday, August 25, 2020 2:03 PM
To: gmsh at onelab.info <gmsh at onelab.info>
Subject: [Gmsh] Step model view export as png from command line/script

Dear Gmsh creators,

Forever grateful for providing us with this fabulous tools and all your effort in support.

I am working with gmsh without user interface in an optimization process where everything is driven with command line gmsh options in shell scripts.

I just want to load the step files, export the resulting view, what I would have seen if I were working with gmsh with display, to png file, and that is it.

Can I do that?

Thank you very much for reading.
Best regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200825/88fcd57d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-3dmo5pwa.jpg
Type: image/jpeg
Size: 36177 bytes
Desc: Outlook-3dmo5pwa.jpg
URL: <http://onelab.info/pipermail/gmsh/attachments/20200825/88fcd57d/attachment-0001.jpg>

More information about the gmsh mailing list