Remove modules from a diagrid according to his neighbors numbers

grasshopper
unhandled

(Bruno Cicero) #1

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)


(Michael Pryor) #2


RemoveTri.gh (14.2 KB)


(Bruno Cicero) #3

Works perfectly!

Thank you very much