Grasshopper

algorithmic modeling for Rhino

Hi all,

I have managed to randomly select 50% of the points in a list. but i'm to now select and invert the selection and select the other 50%, I've tried remove duplicate points but doesn't seem to be working.

Thanks,

J

Views: 2181

Attachments:

Replies to This Discussion

Set difference is one way:

Attachments:

Thank you!

I think you are better off by not using a "random reduce" from the start, and by creating a random boolean pattern to dispatch your list of points. Check out the two methods I propose in the attached pic!

Attachments:

Why "better off"?  Alternatives are great, "better" needs to mean something...

By the way, you don't need the 'CSet' components in my example.  And I prefer to multiple the length of the point list by a fraction between zero and one instead of dividing by an integer; much easier than a cull pattern edited manually.

Attachments:

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service