PolyBridge in For-Each Loop
1898 8 2-
- MoltenCrazy
- Member
- 86 posts
- Joined: April 2016
- Offline
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.
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.
-
- krueger
- Member
- 192 posts
- Joined: Oct. 2018
- Offline
How about using a PolyExtrude and enable “Output Back” with the distance instead of using the peak sop. Then either use the inset parameter or drop down a fuse sop after and set it to snap. And the polyextrude also has an “individual elements” mode if you don't want to use the facet.
Edited by krueger - May 30, 2019 19:57:42
-
- BabaJ
- Member
- 2164 posts
- Joined: Sept. 2015
- Offline
If I think this is what your looking for.(green netbox)
Ran the polyextrude in a for loop block. But before doing so assigned normals to the points and set polyextrude to use those normals so you have ‘automatic’ insets.
I created a new attribute i@Hex_Id with the iteration value of each loop, so the extruded hexes can be treated as one piece.
Ran the polyextrude in a for loop block. But before doing so assigned normals to the points and set polyextrude to use those normals so you have ‘automatic’ insets.
I created a new attribute i@Hex_Id with the iteration value of each loop, so the extruded hexes can be treated as one piece.
-
- krueger
- Member
- 192 posts
- Joined: Oct. 2018
- Offline
-
- MoltenCrazy
- Member
- 86 posts
- Joined: April 2016
- Offline
Thanks to both of you for the help.
Hadn't considered using the PolyExtrude with Fuse or about driving the extrusion with the normal attr.
I've attached a version of the file that shows both methods 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…
–
mC
Hadn't considered using the PolyExtrude with Fuse or about driving the extrusion with the normal attr.
I've attached a version of the file that shows both methods 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…

–
mC
Edited by MoltenCrazy - June 1, 2019 11:52:34
-
- krueger
- Member
- 192 posts
- Joined: Oct. 2018
- Offline
-
- MoltenCrazy
- Member
- 86 posts
- Joined: April 2016
- Offline
-
- krueger
- Member
- 192 posts
- Joined: Oct. 2018
- Offline
MoltenCrazyNo worries. It's easy over think things in Houdini…
Thanks, mkps!
Didn't realize it was going to be as simple as passing the general group names. Thought I'd need to call out the primitive IDs in the polyBridge node, but I guess that's exactly the job of the for loop. Really overthought that one…
–
mC
-
- MoltenCrazy
- Member
- 86 posts
- Joined: April 2016
- Offline
mkps
No worries. It's easy over think things in Houdini…
Ha…thanks for that. I swear, sometimes I go down a rabbit hole with Houdini just trying to build a procedural stack of cubes, then the next thing I know two days have passed, I've got networks in place for a simulated space elevator, and my head feels like a bag of sugar-charged weasels…

–
mC
-
- Quick Links


