crystalShape.crystalShape edit page

a class representing crystal shapes.

The code of this class is based on the paper

Enderlein, J., 1997. A package for displaying crystal morphology. Mathematica Journal, 7(1).

A crystal shape is defined by a list of face normals. The faces are placed at a distance given by the length of their normal and the polyhedron is the intersection of the corresponding half spaces, so scaling a normal moves its face and can make it disappear entirely.

Syntax

cS = crystalShape(N)
cS = crystalShape(N,habitus,extension)
cS = crystalShape.hex(cs)

Input

N Miller, the face normals
habitus how visible mixed hkl faces are, 0 switches it off
extension [a b c], distance of the faces depending on hkl

Output

cS crystalShape

Class Properties

N Miller, the face normals
V vector3d, the vertices
F the faces as indices into V
E the edges
habitus how visible mixed hkl faces are
extension distance of the faces depending on hkl
CS crystal symmetry
diameter largest distance between two vertices
faceArea area of each face
faceCenter vector3d, center of each face
volume volume of the polyhedron

Example

mtexdata titanium;
cS = crystalShape.hex(ebsd.CS)
close all
plot(cS)
ebsd = EBSDhex (y↓→x)
 
 Phase  Orientations           Mineral         Color  Symmetry  Crystal reference frame
     0    8100 (99%)  Titanium (Alpha)  LightSkyBlue       622        X||a, Y||b*, Z||c
 
 Properties: ci, grainid, iq, sem_signal, oldId
 Scan unit : um
 X x Y x Z : [0 → 996] x [0 → 998] x [0 → 0]
 Normal vector: (0,0,1)
 Hex grid     :97 x 84
 
 
cS = crystalShape
 mineral: Titanium (Alpha) (622, X||a, Y||b*, Z||c)
 vertices: 12
 faces: 8

See also

CrystalShapes Miller

Citing this page. This page is part of the documentation of MTEX, a free and open source MATLAB toolbox for analyzing and modeling crystallographic textures. It was written by The MTEX Developers and is published at https://mtex-toolbox.github.io/crystalShape.crystalShape.html. If you use MTEX, or reuse text or figures from this page, in your research, please cite

F. Bachmann, R. Hielscher, H. Schaeben: Texture Analysis with MTEX - Free and Open Source Software Toolbox, Solid State Phenomena 160 (2010), 63-68. 10.4028/www.scientific.net/SSP.160.63

BibTeX
@article{bachmann2010mtex,
  author  = {F. Bachmann and R. Hielscher and H. Schaeben},
  title   = {Texture Analysis with MTEX - Free and Open Source Software Toolbox},
  journal = {Solid State Phenomena},
  volume  = {160},
  pages   = {63-68},
  year    = {2010},
  doi     = {10.4028/www.scientific.net/SSP.160.63},
  url     = {https://doi.org/10.4028/www.scientific.net/SSP.160.63}
}

Other papers describing specific MTEX methods are listed under Publications — please cite the one that best fits your application. The MTEX source code is licensed under the GNU General Public License v2.0; the text and figures of this documentation are licensed under CC BY 4.0, which permits reuse — including by automated systems — provided The MTEX Developers and this page are credited.