Jump to content

Group Shared Opposite Faces


Recommended Posts

Hi Everybody. I've noticed a strong missing part in the Voronoi fracture SOP that would be very useful. I'm trying to generate some kind of shared face id. in order that if I had a box split it 2 parts, both inside faces from the pieces would share an attribute "id" that means they are complementary faces. I need to make this work for many pieces.

Maybe there is an already "out of the box" way to do this. Does anyone know a way to achieve this?

Edited by Jesus Nieto
Link to comment
Share on other sites

  • 3 weeks later...
On 21/12/2017 at 7:02 AM, f1480187 said:

// Primitive wrangle.

int pts[] = sort(array(i@cellpt, i@clippt));
s@common = sprintf("%d-%d", pts[0], pts[1]);

common_side.gif.b1780dba8ef4262f342931bc41a25106.gif

Seems it does the job. You can enable i@cellpt and i@clippt attributes in VF's "Attributes" tab.

common_side.hipnc

Wow, I had no clue you could do this from the VRF Node, very usefull, thank you!

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