Cut volumes with same skin
Hello everyone,
I've been a Gmsh user for a few weeks now for a side project. Coming from the automotive industry (CAD + ANSA/Primer), I'm super impressed by the Gmsh capabilities, especially with a full parametric approach one can have using the Python API to OpenCASCADE and then mesh.
I'm currently experiencing some weird behavior with the occ/cut tool. I haven't found time to do a trivial example of the issue (my script is 1000+ lines of CSV reading, staggered operations etc etc so extracting the key features would be complicated) but I'm hoping this behavior is not a surprised for an advanced user that will hopefully be able to advise.
My first issue is the following, see below the drawing:
- I create my surfaces for V1, I create volume V1
- I create my surfaces for V2, I reuse some surfaces from V1 (in this case the 3 surfaces forming an inverted U)
- I create a box of volume V (dashed lines), the "tool" here
- I split V2 with V, giving me V3 and V1 hasn't been modified
- as I mesh the model, I realize that V1 and V3 don't share the same top surface (V1 is still defined by S that hasn't been splitted, V3 is not defined by S')
- this is not the behavior I was expecting as I need my meshes connected for my mechanical simulation
In general, is there a way to force S to be split in two surfaces and re-use S' for V1 and V3 enveloppe? I would add that V1 is a very non trivial volume, joggling in/out fully/partially the dashed box so "manually" identifying S and pre-splitting it won't be straightforward...
My second issue, that may be somehow related to the first one: despite using removeTool = True with occ/cut, in some cases (I would say when V1 is a bit more complex), occ/cut tends to freak out a bit and returns V3 + V (the tool), they seem to share the nodes on the interface so it looks like it effectively returns union(V, V3). Known behavior under certain conditions?
Thanks, JC