[Gmsh] Getting point coordinates

Neilen Marais nmarais at sun.ac.za
Thu Nov 13 19:11:05 CET 2008


Hi,

Is there a way to get the x/y/z coordinates of a point into scalar 
variables?

E.g.

Point(1) = {1,2,3,1};
...

Now I want to get hold of the point coordinates to do some calculation on 
it. More particularly, I want to create a new point that is the average 
of two existing points. Is there a way to do this in gmsh?

Thanks
Neilen