[Gmsh] A parse error

Ruth V. Sabariego r.sabariego at ulg.ac.be
Fri Sep 14 15:13:27 CEST 2007


Hi,
I've corrected your Extrude command.
Besides, you should split your arc in two.
See below.
Greetings,
Ruth

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

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

Line(3)={1,3};
Line Loop(1)={1,2,-3};
Plane Surface(1)={1};

Extrude {{0,1,0},{0,0,0},Pi/2} {
  Surface{1};
}


Yonli Zhan wrote:
> Hi, I am a Gmsh beginner,  the following is my first taste.
> I want to get a sphere by using the Extrude.
> But, there is a error message " Line 0: parse error (:)", and I can
> not find what's wrong.
> Hope somebody can do me a favor. Thanks!
>
> ====================================
> lc=0.2;
>
> Point(1)={0,-1,0,lc};
> Point(2)={0,1,0,lc};
> Point(3)={0,0,0,lc};
>
> Circle(1)={1,3,2};
>
> Line(2)={1,2};
> Line Loop(1)={-1,2};
>
> Plane Surface(1)={1};
>
> Extrude {{0,1,0},{0,0,0},Pi/2} {Surface{1};};
> ===========================================
>
>   

-- 
Dr. Ir. Ruth V. Sabariego
University of Liege, Institut Montefiore,
Dept. of Electrical Engineering & Computer Science (ELAP),
Sart Tilman Campus, Grande Traverse, 10 (B28), B-4000 LIEGE, Belgium
phone: +32-4-3663737 -- fax: +32-4-3662910 -- http://elap.montefiore.ulg.ac.be/