Jump to content

Deleting Duplicate Polygons


Recommended Posts

I wrote a simple SOP to find and delete duplicate polygons. We run into these occasionally because of over-eager merge SOPs, but mostly because we're getting data from CATIA and other CAD programs that aren't that careful about the modeling.

It works fine for what we need, but I'd appreciate any feedback from you guys as to ways I might speed it up a bit.

Thanks,

Dave

SOP_DelDupPolys.zip

Link to comment
Share on other sites

I don't think that you should have to fuse the points to make it work. If I take some geometry and run it through a duplicate SOP and then feed that into the DelDupPolys, it finds all the geometry the second time through.

And the evaluation is checking to see if the points are in the same place, not whether the poly is using the same (fused) points.

What version of Houdini did you compile it under? I was using 7 something.

Dave

Link to comment
Share on other sites

Did it under H8. I could send you my test piece of geometry if you like. I put it down to an accuracy thing, if the points are within tolerance you would say the polys were dups but they won't be removed unless the points are fused. My piece of test geometry didn't come from multiple merges or copies so some small errors in point positions must have crept in.

Link to comment
Share on other sites

Ah yes. It only find exact duplicates. If you want to use some tolerance, a fuse SOP seems like an easy solution. For what we want, I only want to find exact matches. If you want to make another version of the SOP to add in tolerances, it shouldn't be hard. Let me know if you do and how you do it.

Dave

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