How to auto point primitive normals outside of solids?

   1160   2   0
User Avatar
Member
24 posts
Joined: Dec. 2019
Offline
Hello, I have the issue where I have tons of small random generated solids.
Some of these solids unfortunately have their primitives reversed.
Now I'm looking for a way to forcefully point each solid object's normals toward the outside, regardless of original winding order.

If you have any idea on how to do this, please let me know, since I have been struggling with this for hours now.
Thanks a lot for your time and help! I really appreciate it.
User Avatar
Member
247 posts
Joined: May 2017
Offline
Hey Yannik,
a HIP file would be helpful here.
User Avatar
Member
9383 posts
Joined: July 2007
Offline
you can reverse pieces with negative measured volume

1. Connectivity SOP (Type Primitive)
2. Measure SOP (Measure: Volume, Accumulate: Per Piece)
3. Reverse SOP (Group: @volume<0)
4. optional Normal SOP if your geo had N attribute that you need to recomute
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links