Mesh boxes and combine into one mesh

I have a group of boxes that I want to convert into a single mesh:

I tried meshing each box separately and then combining the output meshes using Mesh Join. I have two issues with the output:

  • I used Simple Mesh to mesh each box in the hopes that each box will be meshed into a single hexahedral element (i.e., 8 vertices, 6 faces). However, I’m getting 24 vertices instead. How can I reduce this number?
  • The joining operation doesn’t seem to remove duplicate nodes. I expected to get 34 nodes and 38 faces (this assumes each box is one hex element as mentioned above) for this arrangement of boxes but in the image below you can see that the joined mesh has a lot more nodes and faces. How should I do this join? (5.2 KB)