ObiNon Posted May 5, 2015 Share Posted May 5, 2015 Hi guys, I am trying to group my voronoi fragments by there size. Initially I tried to use the measure tool inside a foreach node, but that ended up giving me results via primitive and not via fragment. Varomix helped me out tremendously and showed me a trick using a sphere within the foreach that let me grab the size of the sphere and assign that to a custom attribute on the primitive. This worked great. Can anyone think of some other ways to do this and point me in the right direction ? I have some down time .. so its a good time to get comfortable with this. Thanks M Quote Link to comment Share on other sites More sharing options...
eetu Posted May 5, 2015 Share Posted May 5, 2015 I am trying to group my voronoi fragments by there size. Initially I tried to use the measure tool inside a foreach node, but that ended up giving me results via primitive and not via fragment. The old trick of promoting the primitive area to detail with "max" operation and then demoting back to primitive works fine here. ee_measure_area.hip 1 Quote Link to comment Share on other sites More sharing options...
Skybar Posted May 5, 2015 Share Posted May 5, 2015 Something like this? piecesVolume_dv.hipnc Quote Link to comment Share on other sites More sharing options...
rtep Posted May 5, 2015 Share Posted May 5, 2015 in your foreach you want to measure area attribute promote area from prim to detail as sum attribute promote area again from detail to point as max Then every point will have the same value. You could also do the second promote to prim if you want. 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.