Jump to content

Voronoi Fracturing and foreach changing prim number


merlino

Recommended Posts

Hi,

 

I'm trying to make an object explosion and I prefractured the object using the voronoi fracture node. Then I use the foreach to calculate the volume of every object and delete it if smaller then n. All works well, but if I enable the option "Add Interior Detail" when the geo passes through the foreach the point number and the prim number change (not the number of points) and I use it to delete the object ...

 

Any idea why this is happening?

 

Thanks in advance!

Marco

 

voronoi_fracturing_and_foreach.hipnc

Link to comment
Share on other sites

Well,

I put a sort in both the wires, to make sure the numbering is consistent. I think this kind of solve the problem, but I still doesn't understand what is causing the problem when Add Interior Detail is enabled ...

Without interior detail,you can see Geometry spreadsheet,the name attribute:piece.. was change with ptnum orderly.

When turn on detail, the last piece name attribute was completely disordered.

And the foreach loop was base on name attribute, so when out, the pt order was different form without foreach.

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...