How to modify 2D (submesh) mesh before extrusion 3D

Hello,

I have a prism body, that i want to mesh with hex mesh using extrusion 3D.
create the 2D mesh of one of the faces using gmsh quasi struc quad, set the number of elements in extrusion direction with a second submesh in the edges of the extrusion direction.
this works as expected, but i am having a small issue, i want to modify the 2D mesh generated by gmsh, once modified extrude it. but i couldnt make it work,
what i tested:

  1. create an empty mesh
  2. create 3 submeshes, one for the face to extrude, one for the edges in extrusion direction, one for the complete body (to set extrusion 3D)

the issue is that salome does not allow me to select the solid itself telling me ‘it is not a subshape of the object’.

the other way i tried:

  1. create a 3D mesh with extrusion 3D
  2. create 2 submeshes (for the face and edges)
  3. compute the submeshes,
  4. modify the 2D mesh (eg, remove 4 elements and then add a polygon in the place of the 4 eleements)
  5. compute the hole mesh

the issue here is that the new added element will not extrude ‘it will not be attached to the surface’ and therefore the extrusion 3D will not pick this new polygon element.

outside of creating a compound of a single solid and work from there, is there any other solution? (which i am getting a segmentation error)

a.py (7,8 KB)