[Gmsh] BooleanFragments output identification
David Colignon
David.Colignon at uliege.be
Sun Nov 26 19:46:54 CET 2017
Hi Lionel,
You could try:
http://gmsh.info//doc/texinfo/gmsh.html#Floating-point-expressions
BoundingBox Point|Line|Surface|Volume { expression }
Regards,
Dave
--
David Colignon, Ph.D.
1er Logisticien de Recherche
Université de Liège
ACE - Applied & Computational Electromagnetics
Quartier POLYTECH 1 - Montefiore B28
Allée de la découverte 10
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
http://www.ulg.ac.be/nic4
On 26/11/2017 16:10, Lionel Wilhelm wrote:
> Dear Gmsh community,
> I'm quite new to Gmsh and I'm trying to use the recently available OpenCASCADE functionalities. I would like to know if there is a
> programatically mean to identify the results of a BooleanFragments operation.
> I have two boxes and I would like to cut them with a surface imported as a stp (ShapeFromFile command). So far, my script (attached) works well
> in the sense that both of my volumes are cut as expected. I store the output of the BooleanFragments command in a list v() and label each
> element in order to control which id number is which volume. I would like to know which volume is above and which volume is below the surface.
> For instance, is it possible to return the center of gravity (COG) of a volume ? Based on the COG coordinates, I could identify both volumes.
> Kindly,
> Lionel
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
More information about the gmsh
mailing list