Jump to content

Delete points/prims based on attribute values

Recommended Posts


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!


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now