[Gmsh] Zooming in batch mode

Nitskiy A. nitskiy at list.ru
Mon Aug 31 13:50:31 CEST 2015


Hello,

My script produce mesh for different geometric model sizes and Print resulting mesh in GUI and jpeg.
How to calculate  parameters General.ScaleX ,Y, Z  to fit model in window ?? What is the scale factor/resolution  in graphics window?

I manually set size of graphics window and orientation:

General.GraphicsWidth = General.MenuWidth + 640;
General.GraphicsHeight = 480;
General.Trackball = 0;
General.RotationX = -90; General.RotationY = 0; General.RotationZ = 0;


Size of model (XYZ) - 0.05, 0.148, 0.1 m


Thanks in advice,

Antony Nitsky/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150831/2022daff/attachment.html>