Jump to content

Delete points/prims based on attribute values


Danny_P

Recommended Posts

Hello, 

So I'm working on the good old 'flight paths around the globe' project that the entagma guys made a while back, to add a bit of context. On each of the polylines I've store the start and destination codes, what I'd like to do in remove polyline that have the same route:

  • So for example one poly line has: startCode (LDN) destCode (JFK)
  • Another polyline has startCode (JFK) destCode (LDN)

How would I go about running over all of the points/prims so I can remove one of each, so I don't have the same lines (just reversed). One thought of mine was to store them all in an array and go from there, but anyone has any suggestions they would be greatly appreciated. 

Thanks in advance!

Danny

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...