[Gmsh] Print a limited area of the view to a figure.

pavel.v.ponomarev at gmail.com pavel.v.ponomarev at gmail.com
Fri Jun 5 13:49:05 CEST 2015


Hello,

I try to save the specific part of a 2D geometry limited by a box with 
coordinates [0 40 0 40]
I use these commands to load and save the geometry

//
Merge "teeth.geo";
Geometry.Points=0;
General.Axes=0;
General.AxesAutoPosition=0;
General.SmallAxes=0;

General.AxesValueMaxX = 40;
General.AxesValueMaxY = 40;

General.AxesValueMinX = 0;
General.AxesValueMinY = 0;

General.AxesMaxX = 40;
General.AxesMaxY = 40;

General.AxesMinX = 0;
General.AxesMinY = 0;

Draw;
Print.Height = 700;
Print.Width = 900;
Print Sprintf("test2.png");
//Exit;

However, the resultant file contains whole geometry.
Is there a way to limit maximum and minimum coordinates shown in the 
printed image?

BR, Pavel 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150605/7f5e152b/attachment.html>


More information about the gmsh mailing list