Grasshopper

algorithmic modeling for Rhino

Hi,

I have this definition, where I need to cull out all numbers that there isn't two of (see attached definition) ... does anyone have an idea of how to do this, and is it possible without a script-component?

Thanks in advance!

Views: 620

Attachments:

Replies to This Discussion

You are looking for "CreateSet"

edit: sorry. Misread your post. If you can sort the List, then pairs occur on consequitve indices. You can shift the list by one and compare this with the original. If it is a pair both list items are equal. You can use this boolean pattern to cull one of the lists.

Here is an example to remove duplicated pairs.

I hope this helps,

- Giulio
________________
giulio@mcneel.com

.

Attachments:

Hey

I got two ways copied out of my libary.

Please ask any questions if you do not understand how the file works. It is a very useful way of how to create paths with equal informations. You can sort any type of geometry with this.

Best Regards

DeDackel

Attachments:

Hey guys,

Thanks for all the input. I really appreciate it!

Best,

Claus

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service