Rectangular prisms

Piled up cubes

 

 

Visible cubes

Cubes in contact

Painted cubes