Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip
Thank you Jeremy, indeed this works... and only this works. Thank you! Best regards, Zuheyr On Wednesday, August 26, 2020 12:26 CEST, Jeremy Theler wrote: On Wed, 2020-08-26 at 11:50 +0200, Zuheyr Alsalihi wrote: > 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 Add an Exit instruction in the .geo and call it without the '-' -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh
Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip
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" 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 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@onelab.info http://onelab.info/mailman/listinfo/gmsh ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh
Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip
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 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@onelab.info http://onelab.info/mailman/listinfo/gmsh ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh