chaindriver Posted May 30, 2012 Share Posted May 30, 2012 Hi, I have a mesh with holes and I'd like to cap the holes. I've tried selecting border edges and using the PolyCap SOP, which works. However I need to cap a lot of holes automatically in my setup. Does anyone have any suggestion how I can select the border edges automatically, or whether there's another workflow to cap holes? Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted May 30, 2012 Share Posted May 30, 2012 Hi, I have a mesh with holes and I'd like to cap the holes. I've tried selecting border edges and using the PolyCap SOP, which works. However I need to cap a lot of holes automatically in my setup. Does anyone have any suggestion how I can select the border edges automatically, or whether there's another workflow to cap holes? Add a group sop after your geo, and use that group in your polycap node. it'll polycap all the holes! Quote Link to comment Share on other sites More sharing options...
chaindriver Posted May 30, 2012 Author Share Posted May 30, 2012 Add a group sop after your geo, and use that group in your polycap node. it'll polycap all the holes! Hi Ehsan, thanks for the extremely quick reply. I tried what you mentioned with a grid that has two holes. The two holes were capped indeed, but I got another large piece of polygon that stretches across the whole grid. Any idea why? Quote Link to comment Share on other sites More sharing options...
Erik_JE Posted May 30, 2012 Share Posted May 30, 2012 Hi Ehsan, thanks for the extremely quick reply. I tried what you mentioned with a grid that has two holes. The two holes were capped indeed, but I got another large piece of polygon that stretches across the whole grid. Any idea why? Cause a grid is a non manifold geometry. It will treat the outer edges as a big crazy hole that goes all around it and try to close it. Quote Link to comment Share on other sites More sharing options...
SpencerL Posted May 30, 2012 Share Posted May 30, 2012 Cause a grid is a non manifold geometry. It will treat the outer edges as a big crazy hole that goes all around it and try to close it. Another approach to capping is to use a divide SOP > Remove Shared Edges followed by a merge SOP to merge with the orig geo. Then a fuse SOP. In order to get a better fit for he big irregular polys, you can triagulate them with a scatter sop and triangulate 2d SOP. Ive attached a file demonstrating this. Spencer cap_slueders_001.hip 2 Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted May 30, 2012 Share Posted May 30, 2012 divide SOP > Remove Shared Edges Spencer That's a good trick Quote Link to comment Share on other sites More sharing options...
chaindriver Posted June 3, 2012 Author Share Posted June 3, 2012 Thanks for hip file Spencer. Some handy tricks there! Quote Link to comment Share on other sites More sharing options...
pclaes Posted June 5, 2012 Share Posted June 5, 2012 Also just to make sure: In the group sop you can group by edges -> Unshared edges this will create 1 group with all the border edges in it. If you enable "create boundary groups" you get groups with the edges of each border. Depending on your geo, you could check the amount of primitives in each of those border groups and decide to polycap or not (switch sop in foreach). Another filtering operation I sometimes do is to measure the area of the newly created polygon, if it is too large it will not be added to the geometry -- in the scenario where I want to close small holes. I don't know what your final objective is and how important it is to keep the original topology as intact as possible. There are other techniques to help make meshes watertight by using isooffset and sdf. 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.