RonensArt Posted September 16, 2009 Share Posted September 16, 2009 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 Quote Link to comment Share on other sites More sharing options...
RonensArt Posted September 16, 2009 Author Share Posted September 16, 2009 *Attached: Screenshots, Before and After Asset... Quote Link to comment Share on other sites More sharing options...
Alanw Posted September 16, 2009 Share Posted September 16, 2009 Nice tool, thanks for sharing. Quote Link to comment Share on other sites More sharing options...
kubabuk Posted September 27, 2009 Share Posted September 27, 2009 Hi Ronen, Continuing my post from SESI exchange. Dive inside the otl in the attached file and explore the remove_dupPy1 sop. It's far from being fast but should do its job in most cases. Feel free to experiment with it and improve yours one. All the best kuba removeDupsPythonSop.hip Quote Link to comment Share on other sites More sharing options...
graham Posted September 27, 2009 Share Posted September 27, 2009 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. Quote Link to comment Share on other sites More sharing options...
graham Posted September 28, 2009 Share Posted September 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
RonensArt Posted September 28, 2009 Author Share Posted September 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.