Count the number of points in curves

Hello, I would like to color each cell ( they are curves) according to the number of the points that are inside (for example all the cells with only one point in will be blue, with two points will be red ect) but I don’t know how to make lists of curves according to the number of points that they have inside. Any idea? Thank you.

colored boxes per point count.gh (11.1 KB)

2 Likes

thank you very much! I understand your example but I can’t not apply it in cells with more than 4 points in because it takes again the color of the cells with 1 point.

its dynamic to any amount of points in cells. A few possible issues, probably how you are getting the points. Check your branching at the end.

1 Like

It’s done!! thank you!!!
image|690x388