[Gmsh] Creating a Line Loop from a list of lines (i.e External_Loop[])?

Christophe Geuzaine Christophe.Geuzaine at ulg.ac.be
Mon Mar 26 17:35:08 CEST 2001


trophime christophe wrote:
> 
> For some reasons I would like to create a Line Loop
> from a list of already extisting lines which numbers
> are created in a gmsh geometry file using the scripting
> langage. I have tried the following according to what I
> have seen in one of the tutorial's examples (the one with
> the holes):
> 
> Ext_Insert = newreg; Line Loop(Ext_Insert) = {External_Loop[]};
> 
> where External_Loop[] is a built-in list of continous lines.
> It doesn't work. Gmsh fails with :
> 
> Fatal Error : Unknown Line Loop 2
> 
> Is there a work-around or Do I miss something?
> 

Yep, that might be the problem: all lists are numbered starting at 0...

(Accessing sublists inside lists, e.g. External_Loop[{1:10}] is not
possible for the moment, but will be in the next release.)

My best,

-- 
Christophe Geuzaine

Tel: 32 (0) 4 366 37 10    http://geuz.org
Fax: 32 (0) 4 366 29 10    mailto:Christophe.Geuzaine at ulg.ac.be