Tronotrond Posted September 6, 2019 Share Posted September 6, 2019 Hi all, wondering if anyone can think of a good, hopefully procedural solution for this. I'm importing a CAD model. 12 000 objects and 20 million polygons. About 50% of the parts comes in inverted. See attachment below. Not very ideal, and a pita to fix manually. Logically speaking, it should be "easy" to see if a closed object has the faces facing inwards or outwards, right? If any of you have any good advice here, I'd appreciate any feedback to get things moving in the right direction. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 6, 2019 Share Posted September 6, 2019 Shoot rays along the normals. If they all end up on the piece they are coming from you know it's inverted. inside_out.hipnc 3 Quote Link to comment Share on other sites More sharing options...
anim Posted September 7, 2019 Share Posted September 7, 2019 (edited) if each of your pieces is mostly enclosed then you can measure volume per piece, if it's negative, it's inverted ts_reverse_inverted_pieces.hip Edited September 7, 2019 by anim attached example file 7 1 Quote Link to comment Share on other sites More sharing options...
Tronotrond Posted September 7, 2019 Author Share Posted September 7, 2019 Ahh! Perfect, thanks for both suggestions! I'll give it a shot when I'm back in the office! The measure trick sounds really easy and perfect. Simplicity! And I was trying to convert the pieces to volumes, move the points along the normal and do volume samples, but didn't work out very well due to the massive size differences. As usual, I over-complicate things 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.