[Gmsh] Geometric command

Christophe Geuzaine c.geuzaine at ulg.ac.be
Tue Jun 14 19:01:22 CEST 2005


Tarek Karoui wrote:
> Good morning,
> 
> I want to recuperate a coordinate of a defined point "M", and draw a new
> point which is parameterized by the point "M":
> 
> //Defined Point M
> Point(34945) = {-0.008292668, 7.685275, 18.44795, 1};
> 
> //Parameterized Point defined by M coordinates
> Point(10000) = {"coordinateX of M*2", "coordinateY of M*2.25", "Z.M
> coordinateZ of M*1.36", 1}
> 
> There is any command to do this by GMSH.

Hi Tarek - You can do it like this:

c[] = Point{34945};
Point(10000) = {c[0]*2, c[1]*2.25, c[2]*1.36, 1};


Christophe


> 
> Thank you for responding me as soon as possible!
> 
> Salutation.
> 
> KAROUI Tarek
> INRS
> Laboratoire de Modélisation des Systèmes Mécaniques de Prévention (MSMP)
> Département Ingénierie des Equipements de Travail
> tél. : 		03 83 50 20 00 (poste : 24 53)
> fax direct :	03 83 50 21 86
> e-mail:		tarek.karoui at inrs.fr
> http://www.inrs.fr
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org