[Gmsh] Scripting multiple views in one picture

Christophe Geuzaine cgeuzaine at uliege.be
Wed Sep 2 11:02:11 CEST 2020



> On 27 Aug 2020, at 21:26, Max Orok <morok at mevex.com> wrote:
> 
> Hi Zuheyr, 
> 
> I assume you're talking about the Window->Split Horizontally command in the GUI? 
> I took a quick look, it's possible this command is either undocumented or not exposed (yet) through the scripting interface.

Indeed, this was missing. It has been added in the latest development snapshot: see 

https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/benchmarks/misc/split_window.geo
https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/demos/api/split_window.py

for examples.

Christophe


> As a workaround, you could perhaps create view snapshots one at a time and paste them together with some image processing tool.
> 
> Tutorial 8 (also available in C++ and Python) shows how to rotate the camera in a view. 
> http://gmsh.info/doc/texinfo/gmsh.html#t8
> 
> Sincerely, 
> Max 
> 
> On Thu, Aug 27, 2020 at 1:54 PM Zuheyr Alsalihi <alsalihi at vki.ac.be> wrote:
> Dear Gmsh creators, experts,
> 
> How can I script to split the view in 2 like a technical drawing, view from right on the left side, view from left on the right side, in a split view? Or can I embed a previous view to a small frame somewhere in the main view?
> Many thanks for reading!
> 
> Best wishes. _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
> 
> 
> -- 
> Max Orok
> Contractor
> www.mevex.com
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

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






More information about the gmsh mailing list