Jump to content

create piece size attribute


Gubkin

Recommended Posts

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!

Link to comment
Share on other sites

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 by fathom
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...