Macha Posted April 5, 2011 Share Posted April 5, 2011 I have geometry from which I need to extract a clean NURBS curve (along some edges) I can't get a clean result because the points are not ordered in sequence. Does anybody have a good idea for this? edgenurbs.hip Quote Link to comment Share on other sites More sharing options...
anim Posted April 5, 2011 Share Posted April 5, 2011 here is one technique you can use but you probably need to recreate your edge group according to it the key is to create ordered point group look at the file edgenurbs_example.hip Quote Link to comment Share on other sites More sharing options...
Macha Posted April 5, 2011 Author Share Posted April 5, 2011 (edited) That's great Thomas. Now I know what the "Create ordered" tickbox is for Do you think it would be possible to completely proceduralize the process? Edited April 5, 2011 by Macha Quote Link to comment Share on other sites More sharing options...
kgoossens Posted April 5, 2011 Share Posted April 5, 2011 That's great Thomas. Now I know what the "Create ordered" tickbox is for Do you think it would be possible to completely proceduralize the process? I this something that could help? edgenurbs_example-Kim.hipnc Quote Link to comment Share on other sites More sharing options...
anim Posted April 5, 2011 Share Posted April 5, 2011 here is the fully procedural method if you have continuous curve without branching as in your case it's based on neighboring points so it may be better than proximity searching if you have crazy curves edgenurbs_procedural_reorder.hip 3 Quote Link to comment Share on other sites More sharing options...
Macha Posted April 5, 2011 Author Share Posted April 5, 2011 (edited) That's excellent. Thanks so much to both of you. I can chew on these files for a while. Great insights. Edited April 5, 2011 by Macha Quote Link to comment Share on other sites More sharing options...
kgoossens Posted April 5, 2011 Share Posted April 5, 2011 here is the fully procedural method if you have continuous curve without branching as in your case it's based on neighboring points so it may be better than proximity searching if you have crazy curves Cool!! This solves a lot of problems! Quote Link to comment Share on other sites More sharing options...
hatrick Posted April 6, 2011 Share Posted April 6, 2011 http://www.houdinitoolbox.com/houdini.php?asset=37 Quote Link to comment Share on other sites More sharing options...
Barakooda Posted May 24, 2011 Share Posted May 24, 2011 Macha we talked about it long time ago... Quote Link to comment Share on other sites More sharing options...
Barakooda Posted May 24, 2011 Share Posted May 24, 2011 ant_sort node to use it in this case all you need to do is sort by Y add the "ant sort" node then sort by $ANT ant_sort.otl Quote Link to comment Share on other sites More sharing options...
Barakooda Posted May 24, 2011 Share Posted May 24, 2011 make sure the first point (0) is where you want your curve to start,otherwise you will have to shift it and play with it more. Quote Link to comment Share on other sites More sharing options...
Barakooda Posted May 24, 2011 Share Posted May 24, 2011 guys i`m sorry that i`m clumsy ! hehehe ant_sort_example.hipnc Quote Link to comment Share on other sites More sharing options...
freaq Posted April 11, 2012 Share Posted April 11, 2012 (edited) Hi guys liking both the sorting tools they are very conveniant and have often helped me out. basically I'm new (like newborn XD) to python but I would like to make one more addition to the ant sort, namely that it checks whether there is a point it is connected to. I get the issue that sometimes the result is incorrect because another point (which should not be the next point) is closer then the correct one, however the correct point is connected. I would like the script to check for a connected option first before checking any other point. any and all help would be greatly appreciated. -edit nevermind the convert to nurbs also solved my problem, i'm an idiot XD Edited April 11, 2012 by freaq 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.