[Gmsh] Maybe a stupid question, but...
Alexis Blasselle
alexis.blasselle at gmail.com
Mon Mar 1 16:57:14 CET 2010
I'm sorry but I'm new at gmsh, and I can't understand why this code is not
correct.
I want to generate cylinders and make them rotate (to obtain six cylinders).
I hope it is not a stupid mistake of mine, and thank you in advance for your
answer,
Best regards,
Miss Blasselle
// the code
lc1 = 0.05 ;
R = 0.5;
H = 3 ;
Point(100) = {0., 0., 0., lc1};
// premier cercle
Point(1) = { 0. , 0. , -H/2 , lc1 } ;
Point(2) = { R , 0. , -H/2 , lc1 } ;
Point(3) = { 0. , R , -H/2. , lc1 } ;
Point(4) = { -R , 0. , -H/2 , lc1 } ;
Point(5) = { 0. , -R , -H/2 , lc1 } ;
Circle(23) = { 2 , 1 , 3 } ;
Circle(34) = { 3 , 1 , 4 } ;
Circle(45) = { 4 , 1 , 5 } ;
Circle(52) = { 5 , 1 , 2 } ;
Line Loop (1) = {23, 34, 45, 52 };
Plane Surface (11) = {-1};
tmp[] = Extrude {0,0,-H} {
Surface{11}; };
//out[] = Duplicata{tmp[0];};
Rotate{ {0,1,0}, {0,0,0}, Pi/2 }{ Duplicata{tmp[0];} };
--
http://www.ann.jussieu.fr/~blasselle/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100301/3468fdd1/attachment.html>