Repel faces by distance from each other

Hello,

I would like to repel the face from each other by their shared edge arbitrarily using geometry nodes. The base mesh is a simple plane with some arbitrary loop cuts.
image

The result I’m going after is to obtain something like this:
image

I have been trying to get the opposite egdes position of the shared edges to use it as the center for the Scale Elements node without success. And then a new question arises, how to do it if there is more than one loop cut, since the face in between will need to be from its center.

Cheers.

Hey,
You can try this setup

6 Likes

You can move edge in direction of its face center.

gaps.blend (917.7 KB)

4 Likes