[Gmsh] Mesh from Contour-Points

Christophe Geuzaine Christophe.Geuzaine at ulg.ac.be
Fri Aug 3 09:16:17 CEST 2001


PARAMATE HORKAEW wrote:
> 
> Hi GMSH,
> 
> I have a giant set of contours defined by these control points.
> And my goal is to generate triangular surface from them. (like
> the ones from S.K. Choi and Javad Fatemi)
> 
> //    Contour #0
> Point (    0) = {   4.193,  -40.756,  -24.000, 0.006};
> Point (    1) = {   3.194,  -40.538,  -24.000, 0.006};
> Point (    2) = {   2.214,  -40.264,  -24.000, 0.006};
> ...
> //    Contour #29
> Point ( 2480) = {  41.161,   46.743,   18.000, 0.006};
> Point ( 2481) = {  40.042,   46.124,   18.000, 0.006};
> Point ( 2482) = {  38.939,   45.612,   18.000, 0.006};
> //    Contour #N
> ...
> 
> Following the tutorial, I found that constructing the mesh from lines
> and then line loops is not ideal to me (I don't have space for the
> generated .geo file) Could you please suggest the alternative shortcut
> of doing this. (At least what people normally do)

At the moment, there is no alternative method: you have to define
geoemtrical entities supporting the mesh (lines for 1D meshes, surfaces
for 2D meshes, etc.)... You may try to automate things with loops and
arrays of variables:

For i In {start:stop}
  l[i] = newreg;
  Line(l[i]) = {i,i+1};
EndFor

etc.


Christophe

-- 
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