isTwinning = angle(gB_MgMg.misorientation,twinning) < 5*degree
This seems to be checking if the misorientation is within 5 degrees of the twinning rotation.
The problem is, this is insufficient for a twinning definition as the axis of rotation is also critical.
I understand that the relationship for twinning is defined earlier, my question is at what line of the code is this rotation axis checked?
The angle() command checks the angular relationship between two points, and does not appear to return an axis.
Regards, Jessica
angle(mori1, mori2)