Grasshopper

algorithmic modeling for Rhino

I keep running into this problem. Perhaps someone has a good method for resolving my issue?
When I take a list (lets say of points) and mutate some part of it (move one point for example) I cannot reassemble the list in the same order it was before(with the edited point's original removed). The attached images are just to illustrate this type of situation. Pretend as though this situation were much more complicated.
The second image is the closest I have gotten, but the cull nth does not work for many reasons and the split list only works on even numbers of curve divisions.
thanks,
Tim


Views: 346

Attachments:

Replies to This Discussion

Hi:
one way is if you work with the indices...

Use cull index and then use the sort component, so you can sort the indices, while synchronously sorting the points.

look here:


you dont really need the text panels or the merge component...

I use the new latest version 060043...
Attachments:
Fantastic! Thank you Manuel. I did not have the latest version of GH at the time, so... no cull index component.
also if you pretend to use this with multiple curves, then you should replace the flatten component and try to match the tree structure with the new path mapper component.

http://www.grasshopper3d.com/forum/topics/grasshopper-060043-available

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service