mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
274 stars 182 forks source link

crystal shape,The orientation of the cell is wrong #2108

Closed xiu-shen closed 3 months ago

xiu-shen commented 3 months ago

What do you want to do? I want to map the cell of a specific grain and the slip system What data do you have?

What code do you use? Please provide minimalist code with code in the following form

1. Plot the cells of all grains
cS = crystalShape.hex(ebsd.CS);
plot(grains, cS * 0.8,'FaceColor', 'r','linewidth', 1, 'color' )
2. Plot the cell of a specific grain
[x, y] = ginput(1);
ori = ebsd(x,y).orientations
figure;
plot(ori * cS,'faceAlpha',0.2)
The orientation of the cells drawn by the two methods is inconsistent
% load the data
ebsd = EBSD.load('myFile.txt')

% plot a pole figure
plotPDF(ebsd,Miller(1,0,0,ebsd.CS)

What result do you get

What result do you expect

Error Message If you get an error message copy and paste it below

put the error message here

What MTEX version do you use? mtex 5.11.1