[Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip

Zuheyr Alsalihi alsalihi at vki.ac.be
Wed Aug 26 11:50:20 CEST 2020


I was running the online version with an executable without display, and I get:
< deleted merging info >
Info    : Done reading 'Walls_Unit__0__Wall__6.step'
Info    : Writing 'test.png'...
Error   : Unknown output file format
Info    : Done writing 'test.png'
Info    : Done reading 'gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:14:36 2020
Info    : No current model available: creating one

I thought maybe the no-display version of gmsh I compiled was not using some libraries, I used the one with display
using "-" as Saha indicated:

gmsh.exe gmesh_view.geo -

It gives:
Info    : Done reading './Walls_Unit__0__Wall__6.step'
Info    : Writing './test.png'...
Error   : Creating './test.png' requires a graphical interface context
Info    : Done writing './test.png'
Info    : Done reading './gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:42:32 2020

Thank you for reading.
Zuheyr

On Wednesday, August 26, 2020 11:21 CEST, "Zuheyr Alsalihi" <alsalihi at vki.ac.be> wrote:
  Dear Jeremy, 
When I ran online the command: gmsh.exe gmsh_view.geo 
..... < deleted merging ... >

Info    : Writing 'test.png'...
Error   : Unknown output file format
Info    : Done writing 'test.png'
Info    : Done reading 'gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:14:36 2020
Info    : No current model available: creating one

No png file generated. 

Best regards, 
Zuheyr

On Wednesday, August 26, 2020 11:11 CEST, Jeremy Theler <jeremy at seamplex.com> wrote:
 What does "I cannot create it online" mean?

--
jeremy theler
www.seamplex.com

On Wed, 2020-08-26 at 10:19 +0200, Zuheyr Alsalihi wrote:
> Thank you so much!!
>
> I am using a geo file with which I can create a png file using the
> display but I cannot create
> it online, could you please comment on this?
> I have taken the critical points from a post from Prof. Geuzaine's:
> Extract of the geo file:
>
> .......
> < deleted stuff for merging the step files >
> Merge "Walls_Unit__0__Wall__6.step";
> SetFactory("OpenCASCADE");
> // display stl mesh of CAD surfaces
> Geometry.Surfaces = 1;
> Geometry.SurfaceType = 0;
> // display curves as 3D cylinders
> Geometry.LineType = 2;
> // specify model rotation using Euler angles
> General.Trackball = 0;
> General.RotationX = 0;
> General.RotationY = 0;
> General.RotationZ = 0;
> // print image
> Print "test.png";
>
> Many thanks and best regards,
> Zuheyr
>


_______________________________________________
gmsh mailing list
gmsh at onelab.info
http://onelab.info/mailman/listinfo/gmsh


 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20200826/4dfab9d7/attachment.html>


More information about the gmsh mailing list