3d rectangular grid

How can I make a 3d rectangular grid with attractors point

Have a look at the attachment.

Attractor_re.gh (12.8 KB)


Thanks man that’s exactly what I want.

I am new to grasshopper and I want to create this shape without surfaces. The edges of the cubes will be made of pipes and they will be connected to each other with joints in the xyz plane. how can I do this.