Jump to content

grouping voronoi fragments via piece area ?


Recommended Posts

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

 

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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.

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