Crystal shapes, orientation problem #2146
Replies: 4 comments 7 replies
-
I'm not sure, and I'm only guessing here... I wonder if perhaps the plotting convention (with +Y to south) is affecting CS-drawing coordinates, such that that even if you've got the pole figures and grain structures aligned to match Aztec, MTEX uses a specific directionality for the the CS coordinate reference faces/shapes, too... which maybe is causing the 3D shapes to render inverted(?). IDK. In the past, to avoid some different alignment issues... I used a combination like the following: % plotting convention
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');
% create an EBSD variable containing the data
ebsd = EBSD.load(fname,CS,'interface','ctf','convertEuler2SpatialReferenceFrame');
% rotations
ebsd = rotate(ebsd,rotation('axis',yvector,'angle',180*degree));
ebsd = rotate(ebsd,rotation('axis',zvector,'angle',180*degree),'keepEuler');
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the same issue (using a new Symmetry S3 on a JEOL IT800). figure(2)
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd('indexed'),'angle',10*degree,'boundary','tight');
small = grains.grainSize<1000 ;
ebsd(grains(small)).phase = 0;
[grains,ebsd.grainId,ebsd.mis2mean] = calcGrains(ebsd('indexed'),'angle',10*degree,'boundary','tight');
hQ = [Miller(1,1,-2,0,grains('q').CS,'uvw'),Miller(0,0,0,1,grains('q').CS,'uvw')];
plotPDF(grains('q').meanOrientation,hQ,'complete','MarkerSize',10)` What does seem to work is this: ebsd = rotate(ebsd,rotation('axis',xvector,'angle',180*degree));
ebsd = rotate(ebsd,rotation('axis',zvector,'angle',180*degree),'keepXY');` As with the above poster, the Euler angles no longer match in my case - the first number is 180 degrees higher in MTEX than AztecCrystal, other two are the same, but everything else seems good. Are these rotations equivalent? Any idea why one goes onto crash that pole figure code and the other doesnt? This is using a ctf, if I export the exact same file as h5oina, I can get the crystal shape, pole figure, and map the right way around, but the euler angles are different again - should I just not worry about the euler angles?
|
Beta Was this translation helpful? Give feedback.
-
@zmichels how did you get AztecCrystal to overlay the crystal shapes? |
Beta Was this translation helpful? Give feedback.
-
I want to display crystal shapes on top of grains.
I based the code off the mtex Crystal Shapes page; here are 3 variations.
mtex 5.11.2
I compared the figures obtained with mtex with those generated in Aztec Crystal; using the selected option shown in image during import, the map with grain boundaries and LH PFs match perfectly, but not the orientation of the crystal shapes.
Any ideas on how to correct the orientation, so that everything matches?
Beta Was this translation helpful? Give feedback.
All reactions