How to Detect Inward-Facing Normals in a Band-Shaped Mesh? #4539
Answered
by
Grantim
Gihong-Yim
asked this question in
Q&A
-
I want to know how to detect cases where, like in the mesh above, the band has normal vectors pointing inward. |
Beta Was this translation helpful? Give feedback.
Answered by
Grantim
May 8, 2025
Replies: 1 comment
-
Hello! This is actually quite tricky task in common case, but if you have single component and know that it is convex (or at least mostly convex), you can use volume calculation to determine if it is looking backwards: if volume is positive - than everything is OK, if volume is negative - than your normals are inverted and you may need to flip orientation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gihong-Yim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
This is actually quite tricky task in common case, but if you have single component and know that it is convex (or at least mostly convex), you can use volume calculation to determine if it is looking backwards: if volume is positive - than everything is OK, if volume is negative - than your normals are inverted and you may need to flip orientation.