Basic Data Structure Question

Some quick context for the question:

List A: 100 random points.
List B: 5 pre-defined points (attractors).

I measured the distance between all 100 and the 5 points.

The output is 5 lists of 100 distances.

Next I used a “Larger Than” to get boolean values.

How would you use these boolean values to filter the original 100 point list?

Cull Pattern does not accept lists of differing length / structure.

This seems quite intuitive to me, loop through the 100 points, disqualify & discard those that don’t meet the if condition. But I’m such a beginner I don’t know how it’s done using grasshopper components.

Sorry if it’s obvious but I’ve been searching and can’t figure it out. Thanks.


What are you trying to do with those booleans ?
Do you want to keep points that are far enough from any attractor ?
Or do you want to associate the closest attractor to each point ?
Cull Pattern would work with a list of 100 points and a Pattern made of a tree with 5 branches containing 100 booleans. You would get, for each attractor, the list of points that are further than your criteria - but there might be duplicates across branches.

Please clarify, and upload your GH file with internalized goemetry.

Sorry yeah I should have clarified, I’d like to discard points that fall within a specific distance from any attractor point.

“Cull Pattern would work with a list of 100 points and a Pattern made of a tree with 5 branches containing 100 booleans.”

Yes that’s the issue it’s the duplicates. It’s effectively culling 5 lists against 5 different criteria (the attractors). I’d like it to cull 1 list based on 5 criteria. Effectively loop through same list 5 times, although I suspect there’s a grasshopper based way to do this.

I’ve attached an image and the script for clarification. I made spheres to visualize the area where points should be discarded (for clarity). (20.9 KB)

Here are two methods. (15.2 KB)

Wow thank you very much. It’s so simple, although it makes sense I need to wrap my head around how multiplication does that, and how the branching paths work. Got a lot of learning to do. Thanks again!