Grasshopper

algorithmic modeling for Rhino

Hi folks! I don't know if the title of this post is the correct one. I am super new on grasshopper.

I am facing this problem now.

I have 3 panels - list of index. I need the following

List A has all the index numbers.

List B has some index numbers taken from List A.

List C should the elements from List B + the elements of list A minus B.

I might not be using the correct terms. So here is an image to explain better.

Thanks

Views: 1137

Replies to This Discussion

A - B + B is just A as far as I can tell.

You're probably looking for Set components to do whatever you want to do though, they allow you to find duplicates, intersections, unions and differences between sets of simple data types such as integers and text.

It could also be indeterminate if B is infinity.

Or maybe a value of 18 in B removes ALL 18s from A?

Hi David, thanks for your quick reply. Sorry for the questions. Maybe what I need is much simpler than what I tried to explain.

See if the following image explains better what I need.

Thanks a lot!!

Attachments:

It exists. Look at the "sift" and "combine" components. Sift is essentially the same as dispatch with the major difference being that it keeps placeholders for each lists items that went to the other list with "null" values. Then combine component re combines the list after you have modified elements  in one or both of the lists via these null place holders. I am using it quite frequently for exactly the thing you show above. You will just need to define a pattern logic to sift the list based on how you want to select things. 

see here some quick examples.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service