Remove overlapping primitives

   3285   11   2
User Avatar
Member
36 posts
Joined: March 2014
Offline
Any ideas on how to remove overlapping primitives like this? Tried Clean SOP, PolyDoctor and Boolean Union without luck.
Edited by stinzen - March 9, 2021 09:45:23

Attachments:
overlap.JPG (94.9 KB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Hole SOP
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
36 posts
Joined: March 2014
Offline
Konstantin Magnus
Hole SOP

Thank you but I don't want to cut holes in the mesh I just want to remove the small ones.
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
I see, how about this:

  • triangulate2d: silhouette: *, remove outside of silhouette
  • divide: remove shared edges
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
69 posts
Joined: Sept. 2018
Offline
Delete Small Parts from SideFX Labs?
User Avatar
Member
36 posts
Joined: March 2014
Offline
Konstantin Magnus
I see, how about this:

  • triangulate2d: silhouette: *, remove outside of silhouette
  • divide: remove shared edges

That worked a little bit to well, I'm working with building shapes and with that method they were all merged together.



Edited by stinzen - March 12, 2021 07:31:56

Attachments:
before.JPG (64.6 KB)
after.JPG (47.4 KB)

User Avatar
Member
36 posts
Joined: March 2014
Offline
albinioni
Delete Small Parts from SideFX Labs?

Problem is that I have other parts that are even smaller.

Edited by stinzen - March 12, 2021 07:33:41

Attachments:
small.JPG (92.7 KB)

User Avatar
Member
69 posts
Joined: Sept. 2018
Offline
If you don't mind hard coding the deletion, you can create a blast node and blast away the primitives that are causing you the problem.

Attachments:
remove primitive.hiplc (68.9 KB)

User Avatar
Member
36 posts
Joined: March 2014
Offline
It has to be procedural because I'm loading in different maps, I'm gonna try using rays, detect hitPrims and remove the smaller one.
User Avatar
Member
480 posts
Joined: July 2005
Offline
Hi,

here are two heuristic (similar) methods using the hole sop.

Attachments:
remove_overlap_prim.hipnc (118.4 KB)

User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
Filtering by distance is probably faster. And sharing your actual geometry is, too.

Attachments:
remove_inside.hipnc (127.7 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
480 posts
Joined: July 2005
Offline
I thought that too, but xyzdist() by group is incredible slow compared to the non grouped version (don't ask me why). Looks like it is very expensive to filter the geometry every time.
Edited by Aizatulin - March 13, 2021 03:09:29
  • Quick Links