How to make this form closed

Hello I hope this shape closes perfectly with cubes of the same size like the shape along the surface like the right position’s form

1013.gh (20.8 KB)

. How can I solve this?

1013_surface file.3dm (340.3 KB)

I’d like to know if this is what you want?

Null_Item.gh (10.4 KB)

Thank you very much! That was one of my problems. Another question I was wondering if I could arrange the cubes in grashopper to prevent these blanks from happening. Is there only one way to add some blocks in rhino modeling?

Which blanks are you referring to?

It’s a vertical blank Between the cubes from the floor to the top

Fyi..
Null_Item.gh (11.9 KB)

Thank you!!