Jump to content

Connect sequential points testing for distance


jlklai

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

Link to comment
Share on other sites

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!

Link to comment
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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...