Grasshopper

algorithmic modeling for Rhino

Advice needed on singling out certain indices in data tree

Hi Guys,

I'm trying to single out certain points of a grid of points where they overlap with a second point grid.
I've used a function (x=y) to try to get the points where they overlap, but failed.
I've tried both flattening and not flattening the two sets of points, but I was unable to get the points singled out in one list. I've also tried culling.

Attached is the grasshopper file, would you mind helping me out?
What I wanted to do in the end is to be able to delete the overlapped points and get those which are left.

Thanks all.

Views: 747

Attachments:

Replies to This Discussion

Hi Theunis,

Can you explain a bit how your definition does the removing action?
I've tried to incorporate it to my definition and the result is not what I expected. You can click into the attached definition and see.

There are two sets of points, what I want to do is simply to delete/subsract the points from set 1 (121 points) which are the same as set 2 (9 points). After that, I want to retrieve the remaining points of set 1.
Is there a way to delete one set of numbers/geometries from another set if they are the same?

Many Thanks,
M
Is there a way to do that?
Attachments:
Alright, that definition is for removing only one number of the duplicate numbers, plus it doesn't work so well with two grids over each other.

I did something else to solve your problem, I was in a rush so have not tested it in different situations yet. So check it please.
Attachments:
Theunis,

Thanks a lot. It worked! Only that I need to invert the cull pattern and also set 0 in the list item index.

I try to decipher the logic but don't quite get it. Can you explain a bit how you did it?

Thanks,
M
To invert the selection place a Not component in before the cull pattern component.
Sure, here is an image with notes on it. You will notice the last two components are not needed, because the 1/0 numbers are automatically converted to True/False.

If something is unclear don't hesitate to ask.
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service