NURBS-Python icon indicating copy to clipboard operation
NURBS-Python copied to clipboard

Normal orientation

Open AnirudhaVyas opened this issue 4 years ago • 0 comments

Hello

Using the geometric operation toolbox I was able to get the normal vectors, now I wanted to know how to calculate the orientations w.r.t. X,Y,Z axis respectively. I was using the formula theta = arccos((dot(n,x)/(norm(x)* norm(x)).

where n is the unit normal vector and x is [1, 0, 0] (for finding orientation along x-axis).

For n = [-.93 , 0 ,-0.34] , I am getting alpha as 159.91, which is correct but that angle can be in the second as well as third quadrant (while seeing it in X Z coordinate frame), so wanted to know on what basis this can be stated correctly to which quadrant it belongs

AnirudhaVyas avatar Sep 16 '20 14:09 AnirudhaVyas