Jump to content
MoltenCrazy

PolyBridge in For-Each Loop

Recommended Posts

Woo! My first Houdini modeling question!

I've got primitives in an inner and outer shell, created via a Facet node from the original surface polys.

The matching inner and outer primitives have a matching ID attr, and I also know that after a merge that the matching primitive nums are offset by 642 (the number of primitives in each shell).

I want to send the pairs into a For-Each loop and apply a PolyBridge to each piece, getting closed, independent pieces out. Would love to be able to do this with a simple PolyExtrude, but I need them to appear seamless/joined at the edge at rest.

First, does this sound like the way to go for this?

I feel like it's close, I just can't figure out how to get the proper IDs/group names to the PolyBridge tool for each iteration/pair.

MOD_Hex_Offset_01.hiplc

Share this post


Link to post
Share on other sites
6 hours ago, MoltenCrazy said:

Would love to be able to do this with a simple PolyExtrude, but I need them to appear seamless/joined at the edge at rest

If you would love this just use it. After divide1 sop put a facet SOP node, turn on Pre-Compute Normals and Unique Points. Then you can use a PolyExtrude SOP node with Extrusion Mode - Point Normals + Existing.

Share this post


Link to post
Share on other sites

Hey, vicvvsh! You're all over my posts. :)  Thanks!

Hadn't considered driving the PolyExtrude extrusion with the normal attr. Got a few other suggestions on the SideFX forums as well, including a Fuse approach.

I've attached a version of the file that shows the different suggestions working as well as the final clustering and shattering test, in case someone else can use it.

If anyone is game, I'd still love to know how to get the PolyBridge version to work in a For-Each loop… :P

--

mC

MOD_Hex_Offset_02.hiplc

Share this post


Link to post
Share on other sites

It does indeed, Julian! Didn't realize I could pass entire primitive groups in and that PolyBridge could parse separate matching primtives out of the groups. Figured I would have to iterate over each piece.

Thanks!

--

mC

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

×