Kangaroo Hex Grid Deform - Push Hex Cells Away From Region

Moving on from this TOPIC after playing with Hex Grids and Kangaroo can anyone suggest improvements to this…

It is treating the lines as springs and pushing the cell vertices away from the rectangle if they lie inside and towards if they are outside with strength depending on distance from the rectangle.

How can I keep the cells more hexagonal? Equalise Angle? Clamp Angle? How do I pair up the lines to do this?

How can I push the cells away from any closed curve region(s) so that I end up with minimal cells inside the repelling region(s)?

I want the hex cells to be squashed around the repelling region(s)
PUSH_AWAY.gh (17.5 KB)

Maybe what you are looking for is Anglegoal?. Here’s the result with adding it.

And multiple points repulsion.

PUSH_AWAY_reV1.gh (21.0 KB)

That’s great, thank you!
Any ideas for pushing the cells completely outside of the repulsion curves?

I don’t understand exactly what you mean by “completely outside”, anyway, check this as well if it’s the case.

PUSH_AWAY_reV2.gh (19.4 KB)

1 Like

Thanks again.
What I mean is… Using a closed curve as an attractor to repel the grid cells but end up with no cells inside the attractor curve. So there would be a void where the inner rectangle is.