FW: [Gmsh] animation for the meshed geometry

Ockers, James (J.) jockers at visteon.com
Fri Jan 4 16:31:44 CET 2002


I used the example t8.geo in the tutorials to make a script to output .gif
images (or .jpg). Then, I use the imagemagick (http://www.imagemagick.org/)
"convert" command to string the images together into an animated gif:

convert -delay 10 -loop 0 *.gif animated.gif

Here is a .geo file which rotates geometry:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Point(1) = {0, 0, 0, 0.1};
Point(2) = {0, 1, 0, 0.1};
Point(3) = {1, 1, 0, 0.1};
Point(4) = {1, 0, 0, 0.1};

Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};

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

General.Trackball = 0;
General.RotationX = 0;
General.RotationY = 0;
General.RotationX = 0;

For i In {1:18}

  General.RotationX = 20*i;
  General.RotationZ = 10*i;
  Sleep 0.1;
  Draw;
//  If (i<10)
//    Print Sprintf("box-0%g.gif",i);
//  EndIf
//  If (i>=10)
//    Print Sprintf("box-%g.gif",i);
//  EndIf

EndFor
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Uncomment the lines in the loop to create the image files. I was
unsuccessful at using the command line to create a background mesh, but once
you have that figured out, I assume the Include "xxx.pos" at the beginning
will do what you want.


-----Original Message-----
From: Gokhan YESILYURT [mailto:gokhany at tamu.edu]
Sent: Thursday, January 03, 2002 11:39 PM
To: gmsh at geuz.org
Subject: [Gmsh] animation for the meshed geometry


hi,
I generated a mesh file which is required for a CFD code using the gmsh. At
this step, I would like to prepare a small presentation at least for the
geometry that I have right now. But because of the complexity of the
geometry, I would like to prepare a 3-D animation but I don't know which
program I have to use for this purpose.
may you suggest me a 3-d animation program to make a small presentation?
I only would like to rotate the 3-D meshed surfaces.
thanks

gokhan yesilyurt

_______________________________________________
Gmsh mailing list
Gmsh at geuz.org
http://www.geuz.org/mailman/listinfo/gmsh