Jump to content

Remove Duplicates Asset


RonensArt

Recommended Posts

Hi guys,

I just Uploaded this OTL to Houdini Exchange...

Basically this tool will track any duplicate polys on any geometry and will get rid of them, leaves only the necessary ones.

Houdini Exchange Link: https://www.sidefx.com/index.php?option=com_wrapper&Itemid=8

This Tool is Great to troubleshoot Geometry

Best,

Ronen

removeduplicate.otl

Link to comment
Share on other sites

  • 2 weeks later...

I wrote a Python SOP about 2.5 years ago, back in pre-alpha 9.0 days, that basically did this for removing overlapping geometry with regards to the Auto Rig. However it removed all faces that overlapped, leaving a hole since that was what we wanted it to do. It hasn't been touched since then so it's probably a piece of crap compared to what I could write today so maybe I'll revisit it.

Link to comment
Share on other sites

Well since I had a few minutes I pretty much rewrote my old operator to be better and faster. Attached is the otl file for it.

Like the super old version it works by finding the centroid of the primitive, but now stores the primitive data in a dictionary. After it has stored all the primitives with their centroid position as a key, it looks for any keys whose value list has a length > 1. For all those, the remaining prims are added to the duplicates list and destroyed. The asset now has the option to remove duplicates but leave the first prim there, or you can do what the old one did as well and destroy all overlapping ones, leaving a whole.

sop_remove_duplicate_polygons.otl

Link to comment
Share on other sites

Well since I had a few minutes I pretty much rewrote my old operator to be better and faster. Attached is the otl file for it.

Like the super old version it works by finding the centroid of the primitive, but now stores the primitive data in a dictionary. After it has stored all the primitives with their centroid position as a key, it looks for any keys whose value list has a length > 1. For all those, the remaining prims are added to the duplicates list and destroyed. The asset now has the option to remove duplicates but leave the first prim there, or you can do what the old one did as well and destroy all overlapping ones, leaving a whole.

Thank you guys, this is very useful stuff!

Cant wait to dive into that...

Cheers,

Ronen

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