I have several models that I’ve made in Cubit and meshed them. I want to define another volume (either by importing or creating one) and remove all the elements that intersect it. Think of it as carving out the mesh. If I can do what I want, I do not expect that the resulting mesh would conform or smoothly match the object I used for the carving or hollowing or sculpting, but that’s ok for my application. I thought this should be possible if I could turn my mesh into a free mesh, but haven’t found a way. I tried to add my free mesh to a group and my volume to a group and do an intersection or subtraction, but haven’t had success there either.
Attached is an example python script showing two ways you can carve out the hexes.
Enable the Script Tab under Layout in Options and paste the script in the Script Tab.
get_hexes_in_volume.py (1.38 KB)