Remove modules from a diagrid according to his neighbors numbers

Hi all,

I have a surface divided in a diagrid (see script).
I have also a point, that, moving along the surface, works as an attractor removing diagrid modules according to his distance from the modules center.

After this points removed modules, how can I delete automatically all the modules (see pictures) that have only one neighbor (when I will apply loads in karamba, they are useless)?

At the moment each module is a polyline but no problem for me exploding them.

I hope I properly described my problem.

Thank you in advance
Bruno
Forum.gh (11.7 KB)


RemoveTri.gh (14.2 KB)

2 Likes

Works perfectly!

Thank you very much