<html><body>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
Dear Gmsh community,</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
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.</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
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.</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
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.</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
Kindly,</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
Lionel</div>
<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px;
font-weight: 400; font-style: normal;">
</div>
</body></html>