starlighter Posted November 21, 2017 Share Posted November 21, 2017 Hi everyone! Is there a way in houdini to detect if the surface is opened or closed? (maybe it's a trivial question, but can't find the solution anywhere) Thanks in advance! Cheers! Quote Link to comment Share on other sites More sharing options...
galagast Posted November 21, 2017 Share Posted November 21, 2017 Hi, I'm not sure if this is what you're after: open_closed.rar (H16.5.268 Indie) I used a group SOP to detect unshared edges, converted that group to points, then used the npointsgroup() expression to count and detect if there are open edges or not. 1 Quote Link to comment Share on other sites More sharing options...
Noobini Posted November 21, 2017 Share Posted November 21, 2017 why don't you just cut out the middle man and select points (instead of edges) immediately ? Quote Link to comment Share on other sites More sharing options...
galagast Posted November 22, 2017 Share Posted November 22, 2017 @Noobini Haha indeed! All the while I thought that you need to set the the group entity to Edges in order to have access to all the edge related options. So yeah, the Group Promote can be removed in this case, then just set the Group SOP to a Group Type of Points. Quote Link to comment Share on other sites More sharing options...
starlighter Posted November 22, 2017 Author Share Posted November 22, 2017 Thanks a lot guys, i'll certainly continue in that direction, now i just need to find how to tag the whole geometries based on that condition. Many thanks once again! Cheers! Quote Link to comment Share on other sites More sharing options...
galagast Posted November 22, 2017 Share Posted November 22, 2017 Hi, I've updated the file. It now includes a way to create a group for each connected geometry, and only for those that are open. I used the Connectivity SOP to create 'class' IDs for each connected primitive. Passed everything onto a Foreach by the 'class' attribute, then used the npointsgroup() to filter/switch out only the open geometries, where it then creates a unique group just for that using the Partition SOP. H16.5.268 Indie - open_closed_tag.rar 1 1 Quote Link to comment Share on other sites More sharing options...
starlighter Posted November 23, 2017 Author Share Posted November 23, 2017 It works great, but ofc, you know that. Big Thanks galagast! This helped me a lot as i am still picking up on Houdini and learning things. Cheers! Quote Link to comment Share on other sites More sharing options...
galagast Posted November 23, 2017 Share Posted November 23, 2017 Always glad to be of help! Cheers! 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.