[Gmsh] Retrieve indices of entities created by OCC

Christophe Geuzaine cgeuzaine at uliege.be
Wed Mar 7 20:17:07 CET 2018



> On 7 Mar 2018, at 16:48, Bertrand Thierry <thierry at ljll.math.upmc.fr> wrote:
> 
> Hello,
> 
> Apart from using a BoundingBox, is there a way to retrieve the indices of the elementary entities created by OCC?
> For example:
>     Box(1) = {0,0,0, 1, 1};
> will create 4 Lines. Is it possible to access these 4 indices (as it can be done with the GUI) ?
> 
> More generally, is it possible to do it for any Line/Surface from any Surface/Volume?
> 

You could do:

SetFactory("OpenCASCADE");
Box(1) = {0,0,0, 1,1,1};
surfaces() = Boundary{ Volume{1}; };
lines() = Unique( Abs(Boundary{ Surface{surfaces()}; }) );


> Thanks,
> 
> -- 
> Bertrand THIERRY
> CNRS researcher (Chargé de Recherche)
> Laboratoire Jacques-Louis Lions
> Sorbonne Université
> Office 310, Corridor 15/25
> Tel: +33 (0)1 44 27 72 01
> https://www.ljll.math.upmc.fr/bthierry
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180307/0474bf18/attachment.html>


More information about the gmsh mailing list