I have two meshes which I want to align. I need to put the (bottom surface of the) cylinder on top of the box as shown. I got the normal vectors of both surfaces (v1,v2).
How do I calculate the needed rotation for the cylinders surface to face the exact opposite direction of the top of the box?
I'm grateful for any advice. Thanks in advance