and these cubes (or hexagonal prisms for hcp) also can be plotted in the corresponding inverse pole figure: (this example is hcp.)
This is a clear, intuitive visual expression for grain orientations.
I just wonder is there any code in MTEX can achieve this kind of expression method?
Thank you in advance!
Regards,
Liu
// define a crystal shape
cS = crystalShape.quartz
// some random orientations
ori = orientation.rand(30,cs)
// plot the pole figure
plotPDF(ori,0.4*(ori*cS),Miller(0,0,0,1,cs))
cs = crystalSymmetry(432)
ori = orientation('Euler',10*degree,20*degree,30*degree,cs)
cS = crystalShape.cube(cs)
plot([x,y] + ori * cS)
ebsd = loadEBSD(fname,CS,'interface','ctf')
oM = ipdfHSVOrientationMapping(ebsd('Aluminum'));
oM.inversePoleFigureDirection = zvector;
color = oM.orientation2color(ebsd('Aluminum').orientations);
plot(ebsd('Aluminum'),color)
plot([x1,y1] + ori * cS)
plot([x2,y2] + ori * cS)
some modifications of your code to reference the coordinates to ebsd('Aluminum') but without success until now.
ori = ebsd(x,y).orientations
Remember, that this requires the developer version of MTEX.
This works in principle also for inverse pole figures. I do only wonder what I should plot their: a pole figure is in specimen coordinates, i.e. it makes sense to plot a crystal rotated into specimen coordinates to represent its orientation. However, inverse pole figures are in crystal coordinates. How should I visualize here a crystal orientation. It would only make sense to plot the specimen shape rotates into crystal coordinates.