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

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to