Barakooda Posted November 12, 2010 Share Posted November 12, 2010 I`m looking for better methods to simplify this organic shape like this example i made. New Ideas are very welcome ! Extra: I`m looking for away to code this simple algorithm in Houdini : or even use the "for each" node... Group B Append point0 from Group A. Delete Point 0 from Group A N=number of point in group A for C in (1 to N): "point"= (point in groupA that have the smallest distance from the last object in groupB) append the "point" to group B. point number of this "point" in group B will be C delete "point" from group A you can see where it can be handy in my project file and many other to come. if there is already node that can do it easily Smile i will happy to know about it. simplfiy_geometry.hipnc Quote Link to comment Share on other sites More sharing options...
Macha Posted November 13, 2010 Share Posted November 13, 2010 You can use Python or maybe vex for that. However, if you have the original curve you could perhaps attribute transfer the point number, or use nearpoint() Quote Link to comment Share on other sites More sharing options...
Macha Posted November 13, 2010 Share Posted November 13, 2010 On second thoughts, I don't know if you simply can re-assign $PT... In that case, perhaps a little python script like so could work: -add pt0 to a list -for last entry in list find and append nearest neighbour (that is not in list) to the list -loop through the list and create a polygon That way you should get a curve that fits the previous one exactly with the points sorted correctly. Quote Link to comment Share on other sites More sharing options...
Barakooda Posted November 13, 2010 Author Share Posted November 13, 2010 Thanks mate, i thought maybe there is more straight forward way to do it. If some one have work-flows to simplified geometries and want to share it here , please feel welcome ! i will find time and i will implement this little sort code and will share it with you all. B. Quote Link to comment Share on other sites More sharing options...
Barakooda Posted November 24, 2010 Author Share Posted November 24, 2010 As I promised. Quote Link to comment Share on other sites More sharing options...
Macha Posted November 25, 2010 Share Posted November 25, 2010 Well done Barakooda! Quote Link to comment Share on other sites More sharing options...
Barakooda Posted November 26, 2010 Author Share Posted November 26, 2010 (edited) . Edited November 26, 2010 by Barakooda Quote Link to comment Share on other sites More sharing options...
Barakooda Posted November 26, 2010 Author Share Posted November 26, 2010 "nearest point sort method", little python script. P.S: there is away to delete post in this forum to people like me who tend to do lots of mistakes? :-) this is txt file.hip 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.