[Gmsh] Sleep command.

Maka Mohu maka.mohu at gmail.com
Tue Jan 22 19:47:07 CET 2008


Hi!

I was using Sleep command together with Draw to understand how certain
geometry is build. It is much faster than using comments, since it could be
inserted in all the file at different places and run once. I noticed that it
does not update the geometry. All what happens is that the reading process
is delayed but the goemetry is drawn immediately at the end. Here is an
EXAMPLE modified from CONE.GEO in demos:


lc = 0.2;
Point(1) = {0,0,0,lc};
Point(2) = {1,0,0,lc};
Point(6) = {0,0,3,lc};
Line(1) = {1,2};
Line(2) = {2,6};
Line(3) = {6,1};
Line Loop(4) = {2,3,1};
Plane Surface(5) = {4};

// added line:
Sleep 5; Draw;

Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{5}; }
Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{17}; }

// added line:
Sleep 5; Draw;

Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{29}; }
Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{41}; }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20080122/d2150294/attachment.html>