Grasshopper

algorithmic modeling for Rhino

Replace items that are bigger than X with a value and insert them at start of list.

^

Any ideas on how to achieve this? I have got an original list of points and I move them in x.


The x coordinates that are bigger than the original domain (100) should be replaced with x coordinates of the original range (without the addition).

So all points that are to the left of the line will be inserted back in the list (white points)

Whats troubling me is how to insert back the exact number of x values from the original range. So if 5 points pass the line, then 5 points will be inserted and the spacing would still be the original.

Thanks for any help.

Views: 674

Attachments:

Replies to This Discussion

Hello, Im not sure Im following, are you talking about a function or coding?

Thats very interesting. But how can I make the new points have y value 0? So once the cycle is completed you will end up with a straight line?

Sorry for not being clearer about that.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service