jlklai Posted November 3, 2015 Share Posted November 3, 2015 Hi everyone! First post so if this is not the correct forum, I apologize in advance -- I'm relatively new to Houdini. I have a large set of points imported into Houdini and I want to connect the points sequentially with using point ID. However, I also only want that connection to happen if the distance between two sequential points is smaller than a set distance. The add SOP gives me the sequential connection when I use the Polygon tab By Group but I'm having trouble excluding the sequential points whose distance is greater than the amount I want. I don't know if there's a way to either form groups first with my distance criteria, or delete the long edges after the add SOP? Thanks in advance! Help or general pointing the in right direction will be greatly appreciated! J (I've included a diagram of what I have vs. what I'm trying to do) Quote Link to comment Share on other sites More sharing options...
magneto Posted November 4, 2015 Share Posted November 4, 2015 One thing you could do is to delete any segments that are larger than your distance threshold. There are many other ways as well 1 Quote Link to comment Share on other sites More sharing options...
jlklai Posted November 4, 2015 Author Share Posted November 4, 2015 Thanks for the reply! What would the expression be for the delete SOP? is segment length a variable I can query in the expression field? Or are you talking about an approach with different operators? Quote Link to comment Share on other sites More sharing options...
jlklai Posted November 4, 2015 Author Share Posted November 4, 2015 I think I've found the solution that works for me from what you've said and adapting this: http://forums.odforce.net/topic/20782-delete-by-edge-length/ It seems like the delete SOP was automatically bridging some of the end points, whereas the dissolve sop doesn't necessarily do that? Thank you so much for your help! Quote Link to comment Share on other sites More sharing options...
magneto Posted November 4, 2015 Share Posted November 4, 2015 Np man, you can use the Facet SOP to unfuse the points and then use AttribWrangle in Prim mode to check for length, or use Measure SOP to record the length for each prim and then remove them in AttribWrangle using removeprim. Not the best way but one of the ways to do it. 1 Quote Link to comment Share on other sites More sharing options...
Atom Posted November 4, 2015 Share Posted November 4, 2015 Or just connect them all and resample. Quote Link to comment Share on other sites More sharing options...
Shinjipierre Posted November 8, 2015 Share Posted November 8, 2015 Connect adjacent pieces? 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.