Skip to content
Snippets Groups Projects
Commit c222bd1a authored by Laura Nervo's avatar Laura Nervo
Browse files

gtMisorientation : added extra info to third output


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>
parent 5a0504a1
No related branches found
No related tags found
No related merge requests found
function [mis_angle, mis_axis, Gsymm] = gtMisorientation(r_vector1, r_vector2, symm, latticepar) function [mis_angle, mis_axis, info] = gtMisorientation(r_vector1, r_vector2, symm, latticepar)
% GTMISORIENTATION Easy function to calculate the misorientation angle and axis % GTMISORIENTATION Easy function to calculate the misorientation angle and axis
% between two R_vectors % between two R_vectors
% %
...@@ -67,15 +67,20 @@ if nargout > 1 ...@@ -67,15 +67,20 @@ if nargout > 1
mis_axis = misorientation_axes{dummy}; mis_axis = misorientation_axes{dummy};
if (~isempty(latticepar)) && latticepar(6) == 120 if (~isempty(latticepar)) && latticepar(6) == 120
mis_axis = gtCart2Hex(mis_axis, latticepar); mis_axis_hex = gtCart2Hex(mis_axis, latticepar);
else
mis_axis_hex = [];
end end
if nargout > 2 if nargout > 2
Gsymm.r1 = r_vector1; info.r1 = r_vector1;
Gsymm.r2 = r_vector2; info.r2 = r_vector2;
Gsymm.g1 = g1; info.g1 = g1;
Gsymm.g2 = g2; info.g2 = g2;
info.mis_angle = mis_angle;
info.mis_axis = mis_axis;
info.mis_axis_hex = mis_axis_hex;
info.dummy = dummy;
for ii=1:length(symm) for ii=1:length(symm)
symm(ii).netG = netGs{ii}; symm(ii).netG = netGs{ii};
symm(ii).mis_angle = mis_angles(ii); symm(ii).mis_angle = mis_angles(ii);
...@@ -85,7 +90,7 @@ if nargout > 1 ...@@ -85,7 +90,7 @@ if nargout > 1
end end
end end
Gsymm.symm = symm; info.symm = symm;
end end
end % end of function end % end of function
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment