Macha Posted April 11, 2011 Share Posted April 11, 2011 I don't know much about vex so this is probably elementary: If we have a line, can we get an (ordered) array of its point numbers. If so, then we could solve this very fast with a simple sorting algorithm: Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted April 11, 2011 Share Posted April 11, 2011 I'm not sure if there's a function which could do that straight away..but I guess if you loop through the points with a for loop and sort of assign ptnum to a variable you will get the point numbers. Now i'm not sure whether they would be sequential. The for loop could get the data from the geometry but I'm not sure of the order of the points..will give it a try and let you know. Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted April 11, 2011 Share Posted April 11, 2011 erm..just to clear things up..you need this array of points to be ordered based off what?? Quote Link to comment Share on other sites More sharing options...
Macha Posted April 11, 2011 Author Share Posted April 11, 2011 erm..just to clear things up..you need this array of points to be ordered based off what?? Proximity and connectivity. Then sort, create an ordered, increasing attribute and sort sop. Something like that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.