Hi there !
The title might not be clear much, so let me try to explain. I'm trying to compute the angle of each points inside of a hole in a geometry.
By searching a bit, I found float angle = degrees(acos(dot(normal_pt, nn_pt)));, which works, but there is an issue with my specific case.
The blue angles are fine (simply by luck, coming from the shape of the hole), but the red ones are incorrect.
Instead, I want to get the orange angle. That's pretty easy, I can do 360-angle. But the issue is when. How do I detect those issues, to be able to apply the fix ?
Alternatively, I tried using the Measure SOP to compute this all for me, but I didn't find how to use it in this manner. But knowing Houdini, there probably is some node or VEX function that can compute this for me already =P
Thanks !
getHoleAngles.hipnc