Grasshopper

algorithmic modeling for Rhino

Hi, i have a problem.

I have a list with many data. in the list some data are repeated. I want delete this data but the only component that i find is "cull duplicate" but i don't have point. i have integer.

Please help me

Views: 27162

Replies to This Discussion

Thank you. 

Also look at [Create Set]. It will remove all duplicates because mathematical sets do not allow for the same element to be present more than once.

Thank you!

David, if i need find the minor number from a list. what component can i use?

Solution 1. [Sort] and then extract the number at index=0 using [List Item]

Solution 2. [Bounds] and then plug the resulting domain into [Deconstruct Domain]

Create set doesn't seem to work. Could somebody help me please?

Thanks

what is the [function] after the [sort list], I don't recognize the icon?

nevermind, delete consecutive, found it here: https://rhino.github.io/#System

Would it possible to remove all the items which has clones? For example: [1, 1, 2, 3, 4, 3, 5, 6, 6] to [2, 4, 5]

Yes, try with Create Set or Delete Consecutive components. They are both located in the Sets tab. Also remember this is the old forum now and it is theoretically closed. 

If this is not clear enough for you or have any other doubts try asking in the new forum:

https://discourse.mcneel.com/c/grasshopper

What if I want to delete the items when they are duplicated? So I don't need 0, 1, 2, 4. I want the result with {3}

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service