Jump to content

Boolean shatter clears all edge groups in the incoming geometry


hojun-y

Recommended Posts

I used boolean shatter (with treat as surface option for both sets) to split the geometry A. However, the node drops all edge groups in the geometry.
As in the attached file, I'm finding a way to keep the geometry A's edge groups after shattering, just like the DESIRED_OUTPUT node on the right side.


I want to know how to shatter the (planar) geometry without losing edge groups or reassigning them after splitting.
Thank you.

boolean.hipnc

Link to comment
Share on other sites

Here is a method extracting the edges, which are in the group. For each point and each neighbour you can check, if the distance is close enough to one of these edges. It is probably necessary, to collect all incident edges for each point, because there can be more than one edge, which is in the group and close enough to the point (especially if the point is an original point and it has multiple edges, which are in the group). The midpoint of both points should be close enough to one of these edges from both points, If this is the case, the edge should be in the group.

group_if_small_dist.hipnc

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