VDBs -> Convert VDB to Polygons, the Connectivity SOP and naming

   2043   0   0
User Avatar
Member
177 posts
Joined: Nov. 2015
Offline
Hi,

What I'm attempting to do is fracture a VDB into several pieces, then run a for-each loop over that, and break up VDB pieces with a volume greater than X into smaller pieces, then convert all of them back into polygons and use the connectivity SOP to figure out how many actual pieces there are after the fracturing.

I need to then create a glue network that only glues the secondary pieces together so I can control when the break.

So, each piece is either an original fractured piece, or a ‘sub piece’ that's part of an original fractured piece.

I'm having difficulty naming the sub pieces AFTER the connectivity.

The class Attribute that the connectivity SOP creates doesn't accurately account for any sub-pieces.

What I'm wanting is names that look like this.

piece_1
piece_2
piece_3_sub_1
piece_3_sub_2
piece_3_sub_3
piece_3_sub_4
piece_4_sub_1
piece_4_sub_2


That way, I can differentiate what sub pieces are part of what ‘original’ piece and ‘glue’ them together with a connect adjacent SOP.

Any help would be appreciated.

Jim

Attachments:
testing_fracturing_v001.hiplc (342.6 KB)

Reel Inpsirations
Houdini Work in Progress [vimeo.com]
  • Quick Links