Jump to content

get edges from voronoi fracture


Juzwa

Recommended Posts

Hi, 

So voronoi fracure sop creates those two groups, inside and outside

What I want is to play a bit with edges in vopsop. So I had an idea to maybe somehow do the "math" on the points that are both in groups inside and outside. but those grops are prim groups

Then I had another idea to create some attribute, basedon prim groups, lets call it inOut (0 for inside 1 for outside). But I dont think it works that way, because when I test this out in vopsop and delete points based on my new inOut group, some weird random points are deleted.

So how can I do that? I mean get only those points on the edges?

Edited by Juzwa
Link to comment
Share on other sites

group sop/edit/convert/primitives to points. 

Then in an attribute wrangle add:

if(inpointgroup(0, "inside", @ptnum) && inpointgroup(0, "outside", @ptnum))
    {
        setattrib(0, "pointgroup", "edge", @ptnum, -1, 1, "set");
    }

You should now have a new group "edge", which you can operate on in the vop. 

Cheers,

WD

  • Like 1
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...