Skip to content

rotate annotations together with tensor #722

Answered by kilir
lfgmorales asked this question in Ask Anything
Discussion options

You must be logged in to vote

Hi Luiz,
I guess if you'd like to rotate the tensor and it should stay a matter tensor, it should be a rotation, not an orientation (check the symmetry'mineral' of the tensor after rotating):

g = rotation.byEuler(10*degree,20*degree,30*degree)

and the text could end up with the same rotation to the corresponding postions.

text(g* Miller({1,0,0},{0,1,0},{0,0,1},cs_tensor_ort), {'(100)','(010)',...
    '(001)'},'backgroundColor','w','fontweight','bold','fontsize',18)

Does that do what you want?

Cheers,
Rüdiger

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lfgmorales
Comment options

lfgmorales Jan 24, 2021
Collaborator Author

Answer selected by lfgmorales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants