> On 7 Mar 2018, at 16:48, Bertrand Thierry <[email protected]> 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
> [email protected]
> 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
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh