Grasshopper

algorithmic modeling for Rhino

moving points from one list to a specific position in another list of points

Hi all. I would like to move the points rounded with a circle from "position 1 to 0". The thing is that these points do not fully correspond to the list tagged with numbers in the image attached (which follows this pattern 0,1,2,3_0,1,2,3,4_0,1,2,3,4,5), they are within another list od points, a list that matches just some of the 1 positions of the original list. I have tried "replace" (the points from the list I want to move by the ones placed at position 0 from the original list), but I get as an output every 0 position, and I just want to that for the points I want to move, not for every point placed at 1 position.

Suggestions?

Thanks.

Views: 313

Attachments:

Replies to This Discussion

Posting a screenshot or a descriptive example of what you are trying to do within GH would be more sufficient to understand the problem.

You are right but the code is quite long and tricky now. However, I think it´ll be easier this way. I just want to calculate the distance between the green points that are within a list (they do not match all the 1 points, which are in another list) and the points placed at 0 postion, which belong to another list of points (the same list that contains the 1 points). Then I could set a threshold distance to get as an output some of the 0 points (the ones that are at 4.5m from the green points in this case), maybe just using "evaluate" and "dispatch".

Attachments:

ooooook I solved it. thanks!!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service