I'd like to make a polycube. That is, I want to create an object which is composed of cubes which share faces. For example:
I first tried simply taking cubes and sticking them close together, the the resulting mesh data does not correspond to a polycube, as these cubes would not be sharing a side. I then tried taking a rectangular prism and using the loop cut and slide tool, but this would require the prism to be dividable into equal sized cubes (which I wasn't sure how to enforce). Furthermore, I don't see how I could make certain figures (such as the bottom left one from the picture) using this method.
Is there an efficient way of building such polycubes? Any help is appreciated, thanks!