I am working on a 3D mesh parsing tool. I'm currently trying to determine the rotation between two congruent triangles in 3D space - we will call them ABC and DEF .
I can translate points A and D to the same place and now I need to define a rotation that places DEF on the same plane and in the same orientation as ABC , but I'm not familiar with math to do this. Can someone tell me how I can handle this?
I thought about using the cross product AB and DE to determine the axis of rotation, then the point product, to find the angle, and then derive a quaternion from them; but I don’t know if it will always align them correctly.
Am I mistaken about the above idea? Will triangles always align? If this is not the case, then what is the alternative way to find the turn?
source share