dunken Posted August 13, 2017 Share Posted August 13, 2017 Hi, I run a voronoi fracture on a cube mesh and I want to delete the outer chunks and keep the inner ones, I tried to use a blast node and set the Group to "outside" but this only removes the outer faces rather the the the whole chunk, So is there a way to select the outer chunks of voronoi fracture? Thank you Quote Link to comment Share on other sites More sharing options...
f1480187 Posted August 13, 2017 Share Posted August 13, 2017 You can modify blast-way to something like this. remove_outside_pieces.hipnc 5 1 Quote Link to comment Share on other sites More sharing options...
dunken Posted August 13, 2017 Author Share Posted August 13, 2017 That's perfect, I'm new to houdini so I'm still trying to get my head around it, your file is very helpful, thank you! Quote Link to comment Share on other sites More sharing options...
drøgö Posted January 13, 2020 Share Posted January 13, 2020 On 13/8/2017 at 5:56 PM, f1480187 said: You can modify blast-way to something like this. remove_outside_pieces.hipnc hei @f1480187, nice solution, can u explain to me how it actually works? i mean, are you so kind to try to explain to me the whole foreach loop and what the switch is checking? i cant understand the role of the null obj thanks, Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 13, 2020 Share Posted January 13, 2020 well I see @f1480187 last visited the forum months ago...prolly snowed under with work. so i'll try to put a few words together: in the loop, for each chunk, let's say the chunk has X prims (or faces), it does an overhead step that is delete the outside prim, if there was any outside faces, the prim count would be X - Y. The blast just stays unconnected to anything which may be confusing at first but it's just an overhead step that should be done for each chunk. Then the switch would inspect each chunk, get the count of faces: nprims(1), ie. using the second input not first. Then it compares nprims(1)...say is X to the result of blast but remember from above the new count would be X-Y So X == X- Y is only possible when Y = 0...ie....there is NO outside faces for that chunk. the result of the test is either 0 or 1 for true or false, which conveniently tells the switch which input to use, the effect is the loop is taking ONLY internal chunks. (if Y was non zero, then X cannot be equal to the blast count, so the switch is false, ie. the chunk we are processing contains some outside faces....don't take it, use the null instead) 1 Quote Link to comment Share on other sites More sharing options...
maiden666 Posted January 14, 2020 Share Posted January 14, 2020 (edited) there`s another efficient way (from Entagma) 1. in Voronoi - turn on Exterior Group "Outside" 2. in Foreach ( on Prims) - create Detail attribute i@del = 0; 3. if prim is in Outside group, then set @del =1 to whole Detail 4. promote @del from Detail to Prim 5. Blast Edited January 14, 2020 by maiden666 1 Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 15, 2020 Share Posted January 15, 2020 Ding ding...new challenger....2 nodes after the fracture!!!. vu_delOutsideChunks.hiplc 1 Quote Link to comment Share on other sites More sharing options...
maiden666 Posted January 15, 2020 Share Posted January 15, 2020 2 hours ago, Noobini said: Ding ding...new challenger....2 nodes after the fracture!!!. vu_delOutsideChunks.hiplc Great. Call to Moritz. Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 15, 2020 Share Posted January 15, 2020 44 minutes ago, maiden666 said: Great. Call to Moritz. haha no need...while watching the groupexpand video from Entagma....I thought....heeeeeeeeey.......this might be useful. 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.