How to delete outer pieces from voronoi fracture?
2007 3 0-
- apurbaofficial55
- Member
- 1 posts
- Joined: 6月 2018
- オフライン
Hi, I want to select the outer pieces and delete them, I tried to use the delete node and set the Group to ‘outside’ but this only deletes the outer faces rather than the whole piece.
To do this, I tried to create a group of outer pieces selecting manually the primitives (faces). If I do it manually it'll work. for that just need to drop a group node and start selecting primitives from outside. In this way, it'll take forever to select outer pieces of a large scale model. I did not find any other sufficient way to do this!
I was trying to delete the outer pieces using pack node and to some extent it worked but some of the pieces on top are NOT getting deleted at all!
I don't know if I'm doing right or wrong with the pack node or the delete node.
Any suggestion would be really helpful.
To do this, I tried to create a group of outer pieces selecting manually the primitives (faces). If I do it manually it'll work. for that just need to drop a group node and start selecting primitives from outside. In this way, it'll take forever to select outer pieces of a large scale model. I did not find any other sufficient way to do this!
I was trying to delete the outer pieces using pack node and to some extent it worked but some of the pieces on top are NOT getting deleted at all!
I don't know if I'm doing right or wrong with the pack node or the delete node.
Any suggestion would be really helpful.
-
- Penelo911
- Member
- 1 posts
- Joined: 3月 2018
- オフライン
Just in case someone else searches for it too. I found this :
https://www.youtube.com/watch?v=GmsZ7fMQ8VU [www.youtube.com]
Basically a For-each-loop with an attribute wrangle to delete by name the pieces which have primitives with a group:outside value of 1, meaning any named piece that shares a primitive with the outside of the volume. The Voronoi assignes names to the pieces and seperate them by inside/outside groups)
Sorry if the terminology isn't on point. I'm just a begginer trying to explain in case the youtube video I found isn't accessible in the future. Cheers!

attribute_wrangle VEX :
if (nprimitivesgroup(geoself(), "outside")>0)
{
removeprim(geoself(), @primnum, 1);
}

activate the check box (Piece Attribute) and write : name
*PS : If nothing shows you might not have enough scattered points to have pieces inside that doesn't share a primitive with the outside.
https://www.youtube.com/watch?v=GmsZ7fMQ8VU [www.youtube.com]
Basically a For-each-loop with an attribute wrangle to delete by name the pieces which have primitives with a group:outside value of 1, meaning any named piece that shares a primitive with the outside of the volume. The Voronoi assignes names to the pieces and seperate them by inside/outside groups)
Sorry if the terminology isn't on point. I'm just a begginer trying to explain in case the youtube video I found isn't accessible in the future. Cheers!
attribute_wrangle VEX :
if (nprimitivesgroup(geoself(), "outside")>0)
{
removeprim(geoself(), @primnum, 1);
}
activate the check box (Piece Attribute) and write : name
*PS : If nothing shows you might not have enough scattered points to have pieces inside that doesn't share a primitive with the outside.
Edited by Penelo911 - 昨日 23:06:04
-
- Gaalvk
- Member
- 128 posts
- Joined: 3月 2025
- オフライン
Just as a mental exercise, there’s another way to approach this.
We have a great node called "Attribute Promote" that features a "Maximum" mode and a way to constrain operations by "pieces"—and since a group is essentially an integer attribute, we could potentially leverage that. Unfortunately, we can’t directly specify a group name as an attribute (though there might be a shorthand similar to those used in VEX, I’m not aware of one).
So, the workflow would be: 1) Use "Group Promote" from prims to prims with the "Output as Integer Attribute" option enabled—this converts the group into an integer attribute (let’s call it `out`). 2) We need the piece names to be present on the points, so use "Attribute Promote" to transfer the `name` attribute from primitives to points. 3) Finally, the key step: use "Attribute Promote" again for our `out` attribute from prims to points, set to "Maximum" mode, and specify the `name` attribute as the constraint .
Now, all points belonging to the outer pieces will have an `out` attribute value of 1, allowing you to use a "Blast" node with the expression `@out==1`.
Interestingly, "promote groups" also have a "connectivity" attribute, and one might expect a straightforward, one-step solution—but, unfortunately, there’s no "maximum" mode here. So, you end up having to jump through various attributes instead.
We have a great node called "Attribute Promote" that features a "Maximum" mode and a way to constrain operations by "pieces"—and since a group is essentially an integer attribute, we could potentially leverage that. Unfortunately, we can’t directly specify a group name as an attribute (though there might be a shorthand similar to those used in VEX, I’m not aware of one).
So, the workflow would be: 1) Use "Group Promote" from prims to prims with the "Output as Integer Attribute" option enabled—this converts the group into an integer attribute (let’s call it `out`). 2) We need the piece names to be present on the points, so use "Attribute Promote" to transfer the `name` attribute from primitives to points. 3) Finally, the key step: use "Attribute Promote" again for our `out` attribute from prims to points, set to "Maximum" mode, and specify the `name` attribute as the constraint .
Now, all points belonging to the outer pieces will have an `out` attribute value of 1, allowing you to use a "Blast" node with the expression `@out==1`.
Interestingly, "promote groups" also have a "connectivity" attribute, and one might expect a straightforward, one-step solution—but, unfortunately, there’s no "maximum" mode here. So, you end up having to jump through various attributes instead.
Edited by Gaalvk - 今日 04:44:19
-
- tamte
- Member
- 9763 posts
- Joined: 7月 2007
- オンライン
- you can also use Group Expand to expand 'outside' group using Flood Fill and then blast by the group
OR
- you can also keep only the original outside faces and plug into second input of Primitive Wrangle and do:
OR
- you can also keep only the original outside faces and plug into second input of Primitive Wrangle and do:
int prim = nametoprim( 1, s@name ); if ( prim != -1 ) removeprim( 0, @primnum, 1 );
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Quick Links


