Point in group with same values


Hi all,

I was trying to check which points are in a group, per branch, using the Point in Group component in Grasshopper.
However, I noticed something odd. When a list/branch contains multiple identical points, the component seems to assign individual indexes to each one, even though they’re technically the same point. Is this an error, or is there something I am misunderstanding about how Point in Group handles data trees or point equality?

Any insight would be appreciated!
pointInGroup_error.gh (11.0 KB)

Thanks!

Hi - 'haven’t looked at the file yet. However, that component is not point in group; it’s just point groups for creating groups based on a specified distance, as opposed to testing whether a point is in a group or not.

I see no error. Two points that have the same coordinates are still two points, not “technically the same point”.


pointInGroup_error_2025May1a.gh (10.8 KB)

but should they not be in the same branch? or have the same index?

thanks for point that out. but i would assume two point which are same would be assigned same index

Your assumption is not true. That’s not how it works.

You could Cull Duplicates first, if you really only want to return one result per “unique location in space”

(deliberately not using the word Point there!)

1 Like