FromHell Posted January 15, 2013 Share Posted January 15, 2013 Hello! Is it possible in houdini to check a model for holes or open edges ? Quote Link to comment Share on other sites More sharing options...
eetu Posted January 15, 2013 Share Posted January 15, 2013 Group SOP -> Edges tab -> Unshared Edges? Quote Link to comment Share on other sites More sharing options...
anim Posted January 15, 2013 Share Posted January 15, 2013 or Divide SOP with Remove Shared Edges option then nprims("../divide1") will give you exact number of holes in your mesh and since the divide will already contain caps for the holes you can just merge it with original mesh and fuse to close those holes (you will need to use reverse right after divide and before merge though to get correct result) 4 Quote Link to comment Share on other sites More sharing options...
Erik_JE Posted January 15, 2013 Share Posted January 15, 2013 or Divide SOP with Remove Shared Edges option then nprims("../divide1") will give you exact number of holes in your mesh and since the divide will already contain caps for the holes you can just merge it with original mesh and fuse to close those holes (you will need to use reverse right after divide and before merge though to get correct result) Very neat trick. Quote Link to comment Share on other sites More sharing options...
FromHell Posted January 15, 2013 Author Share Posted January 15, 2013 (edited) thanks guys, that was it! Tomas, where do I have to put the nprims("../divide1") expression? Edited January 15, 2013 by FromHell 1 Quote Link to comment Share on other sites More sharing options...
zarti Posted January 15, 2013 Share Posted January 15, 2013 or Divide SOP with Remove Shared Edges option then nprims("../divide1") will give you exact number of holes in your mesh and since the divide will already contain caps for the holes you can just merge it with original mesh and fuse to close those holes (you will need to use reverse right after divide and before merge though to get correct result) thanks for the tip ! just one note ; if the geometry isnt 'self-enclosed' ( sorry cant find the word in english ) an extra polygon remains . the big silhouete .. so , it works as you described over a torus , but not exactly over a grid . .cheers Quote Link to comment Share on other sites More sharing options...
anim Posted January 16, 2013 Share Posted January 16, 2013 (edited) ... Tomas, where do I have to put the nprims("../divide1") expression? ... anywhere you want you need to put correct path to divide node, or branch containing primitives created by divide, this expression will simply count them so for example put it is the switch sop input parameter as a condition like: nprims("path/to/geo") > 0 it's up to you what you want to do with that information, it will simply tell you if that geo has holes or not and how many if you want. and be careful about what zarti said about open geometries like grid @zarti: sure, but you cannot consider grid as watertight geometry, so essentially outside border is a hole, you just need to keep in mind how it works Edited January 16, 2013 by anim 1 Quote Link to comment Share on other sites More sharing options...
FromHell Posted January 17, 2013 Author Share Posted January 17, 2013 Hey, thanks for the help. Quote Link to comment Share on other sites More sharing options...
frank_13847 Posted May 16 Share Posted May 16 (edited) Just to contribute to the conversation, here's another neat way: - SOP Group with 'Unshared edges' checked - Loop over connected or named primitive -Detail wrangle: int count = 0; for(int i = 0; i < nprimitives(0); i++) { if(inprimgroup(0, 'edge', i) == 1) count ++; } f@count = count; if(count > 0.0) { for(int p = 0; p< nprimitives(0); p++) { setprimgroup(0, 'open', p, 1, 'set'); } } Cheers! Edited May 17 by frank_13847 Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 17 Share Posted May 17 checkMesh_v003.hipnc 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.