[Gmsh] Getting point coordinates

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Nov 13 19:23:58 CET 2008


Neilen Marais wrote:
> 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?
> 

c[] = Point{1}; // c[] contains the coordinates 1,2,3


> Thanks
> Neilen
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine