Gubkin Posted March 13, 2016 Share Posted March 13, 2016 Hello everyone, I am fracturing a geometry and need to delete the pieces bellow a certain size. My problem is that I don't know how to delete based on size. My guess is I need to create a size attribute somehow and then delete based on that. I am sure this should be pretty straight forward but couldn't find any info on that, please give me some ideas, thanks! Quote Link to comment Share on other sites More sharing options...
fathom Posted March 13, 2016 Share Posted March 13, 2016 (edited) you can run a foreach on each piece, then use the measure sop to calculate the area of each poly then attribute promote to a detail attribute by summing the areas. check the value of that detail attribute to decide what to do -- or maybe just stuff that value onto each prim. alternatively, you might be able to calculate the area of a polysoup as a single prim -- not sure. so you'd run your foreach, convert to polysoup and measure that as a single prim without the attribute promote.... Edited March 13, 2016 by fathom Quote Link to comment Share on other sites More sharing options...
Gubkin Posted March 13, 2016 Author Share Posted March 13, 2016 Thank you! Here is the working hip file for people that need it piece_size_attribute.hip 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.