Square packing - (stick together)

hi

I’m trying to find a way to group/pack those squares, without overlapping.
I attached file and image of what I currently have, and what I want to achieve.(I want there to be no interference when I grab those points )

bubble-diagram opptimization.gh (28.7 KB)

1 Like

Hey @zahra_ghorbani, maybe you can edit your script so the rectangles are made before the kangaroo simulation so you integrate some form of snapping like what Daniel Piker made here?

Just an idea! Perhaps look into the option for aligning faces with Kangaroo, if it applies. Also, you could recategorize your topic tag(s) to include ‘kangaroo’ not just ‘Grasshopper - windows’ - this way you might summon the right enthusiasts.
Best

1 Like