Jump to content
Sign in to follow this  
jlklai

Connect sequential points testing for distance

Recommended Posts

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)

 

post-14936-0-65970600-1446589835_thumb.p

Share this post


Link to post
Share on other sites

One thing you could do is to delete any segments that are larger than your distance threshold. There are many other ways as well :)

  • Like 1

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Or just connect them all and resample.

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
Sign in to follow this  

×