Unioning the Geometry for Mesh Connectivity
Union the geometry (Cuboid1 and Cuboid2) to create a single geometry part. A single geometry part will ensure mesh connectivity when the model is meshed.
1 Alternative method is to select the items
in the 3D view.