I want to rotate the Plane which I called face1 in the image attached to align with face2 in the cube. I want to do this in python. I tried several times using the normal of face 2 but did not work. I created vectors using vertices of face 2 but did not work. I don't know what I am doing wrong.
I want to align the two faces with all tangential axes, not only a vector. It is better to share the same position. But the important part is to rotate face1 to have same tangential axes.
Regarding the way to align them, I would like to know both ways, if the results of aligning both faces in these ways are the same. In what I'm trying to do, it does not matter which point to rotate around, I guess.
Consider face1 a face part of a different object than the cube. I want to align two different faces, each from a different object together. So, the object1 that face1 belongs to should move as well. (Thank you quiliup)