In my project, I have around 2740 surfaces and there are 27047 points which lie on these surfaces. I am trying to use the function “plane closest point” to get the list of points which lie on each surface. So basically I want 2740 lists (number of surface) with list of points lying on it.

Problem: Right now as you can see in the image, it is treating the 2740 surface as one plane and giving results of all the points. I am not able to get 2740 lists which I want.

One bad way is to apply this function 2740 times with plane input as one surface at a time. But that’s a lot of work. Can any one please help me out?

I hope I am able to explain my problem. I am quite new to grasshopper.