# Operations with crystal directions

39 views

### Eugenia Nieto

Nov 23, 2020, 6:42:20 AM11/23/20
to MTEX

Hello all!

I have been working on operations with crystal directions following the example included in the MTEX documentation (https://mtex-toolbox.github.io/CrystalOperations.html). In the lines below you can see my shortened script (find it attached also), focusing in the sections I am most interested on:
-----------------------------------------------------------------------------------------------------------------
%% No rotation
cs = crystalSymmetry('6/mmm'); % Mg-hex crystal symmetry

m1 = Miller(1,0,-1,0,cs); % My crystallographic direction
% no symmetry
figure();
plot(m1,'labeled','backgroundColor','w','grid');
% symmetrised
s = unique(symmetrise(m1),'noSymmetry'); % the 6 unique symmetrically equivalent directions
figure();
plot(s,'grid','labeled','backgroundColor','w');
%% Rotated
ori = orientation.byEuler([10,20,30]*degree,cs); % Input orientation in Bunge Euler angles (deg)

p = ori * s;
p1 = ori * m1;

figure();plot(p1,'labeled','grid')
figure();plot(p,'labeled','grid')
-----------------------------------------------------------------------------------------------------------------
Summing up the code, I am interested on identifying the points in the plot that correspond to each direction and its symmetrically equivalent directions. In the first part of the code I simply plot my crystallographic direction m1 in two cases: no symmetry and symmetrised. In the case of the symmetrised plot, the 'labeled' command allows to identify the point that corresponds to each direction with the subsequent Miller indices.

Then, in the last section of the code I want to apply this direction to a given orientation (defined by the Bunge Euler angles in degrees), in my case the orientation 'ori'. As well as in the first part of the code, I applied the rotation both with no symmetry and symmetrically. Then I plotted the result. My problem comes with the labeling of the points, which now is in the let's say 'vector3d' format. What I would want is to identify all the rotated parent directions with their corresponding Miller indices, as in the plot obtained in the first part.

I hope I have explained myself properly and someone can help me! Thanks in advance!!

Eugenia
crystal-operations_test.m

### Ralf Hielscher

Nov 23, 2020, 6:46:39 AM11/23/20
Hi Eugenia,

could you please use the new forum at

Thank you very much,

Ralf.

********************************************************************
Ralf Hielscher                   Tel: +371-531-38556
Fakultät für Mathematik               +371-531-22200 (Sekr.)
Technische Universität Chemnitz  Fax: +371-531-22109
Reichenhainer Str. 39            E-mail: ralf.hi...@mathematik.tu-chemnitz.de
D-09126 Chemnitz                 http://www.tu-chemnitz.de/~rahi
********************************************************************

--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.