Grasshopper

algorithmic modeling for Rhino

merging two lists into one, while omiting the points that repeat in each list

hi all

i am having some problem with merging two lists of data.
i have a list of end points coming from a series of lines.
these end points have lots of points common in them as many of the end points overlap
how can i retrieve a set of points in which each point only comes once and does not repeat
is there a way to cull them or a way to remove those repeating points
i dont have the gh definition right now, will upload it as soon as i reach the studio.

i hope i have put my query correctly, i know the gh def will help...will upload it as soon as possible
regards
samir

Views: 1374

Replies to This Discussion

Hi Samir,

if two points are coincident, are they also adjacent inside the list?

If yes, you can shift the list one item, then measure the distance between each point and its neighbour, then cull every item which has a distance of 0.0 (or some small tolerance number like 1e-12)
hi david,

(still havent got a chance to get hands on my gh def, will upload it first thing tomm morning)
what i have is a number of lines coming from a vb script(one of a def, found here which creates a penrose tiling) from this lines i need to take only the points and feed them into a random component so that i can further work with them, avoiding the points which repeat (which is happening to me as i m taking end points of the line)....
i think i will post this again tomm with the defination.
thnx

regards
samir
hi david...
i have got the gh file uploading it.....
i m still unable to merge the two lists

hope u can help me

samir
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service