[Gmsh] Save a particular region to the figure

Pavel Ponomarev pavel.v.ponomarev at gmail.com
Fri Jun 5 15:03:13 CEST 2015


Hello,

I try to save a view of a 2D geometry limited by certain coordinates [0 40 
0 40] to a .png file with this code
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;

View[1].AxesMaxX = 40.0;
View[1].AxesMaxY = 40.0;

View[1].AxesMinX = 0.0;
View[1].AxesMinY = 0.0;
//Draw;

Print.Height = 700;
Print.Width = 900;

Print Sprintf("test2.png");
//Exit;
but the result is always the whole geometry.

Is there a way to control the coordinates which appear in the figure?

BR, Pavel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150605/5593cf3e/attachment.html>


More information about the gmsh mailing list