[Gmsh] Geo scripts : syntax PointsOf for a Curve Loop

Christophe Geuzaine cgeuzaine at uliege.be
Sun Feb 23 20:58:31 CET 2020

> On 13 Feb 2020, at 21:33, Don Van Kerkhoven <donvk at distributel.net> wrote:
> Hi,
> Using Gmsh V4.5.2 for on Window7-64pro. I have search the archives and can’t find an example of this.
> I have a  Curve Loop and I want to extract the #curves and the list of curves in the loop. Can it be done, and if so, what command / syntax ?

It's currently not supported: "Curve Loops" and "Surface Loops" can not be queried - only point, curves, surfaces and volumes.

As a workaround, use a list to create your curve loop, and use that list instead. If the surface is given to you (e.g. from a STEP file) and you didn't create it explicitly with a curve loop, you can use the "Boundary" operator to extract the curves on its boundary.


> // script  **************************
> Line(1)={Point(1), Point(2)};                                        // works fine
> Curve Loop(10) = {1,2,… n};                                         // works fine, displays properly, 
> NumLineSeg=#Curve{10};                                            // fail -- try to find #curves, and it fails, don’t know why
> MouthLineList3[]=PointsOf{ Curve{10};};              // fail -- try to find curve list, could not apply operation on shape
> MouthLineList3[]= Boundary {Curve{10};};           // fail --  try to find curve list, could not apply operation on shape, unknown tag 10    
> thanks
> Don
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 

More information about the gmsh mailing list