Variables of type grain3d store 3D grain data. At the moment 3d grains can be imported from <NeperInterface.html Neper% > or from Dream3d.
Import Grains from Dream3d
As with any data we can import
Similarly as with two dimensional grains we can select individual grains by arbitrary constraints. For instance we can find the largest grain by
Import Grains from Neper
Neper is a software package for the simulation of three dimensional microstructures. After installation it can be directly called by MTEX. The general workflow is explained here. Here we use it to quickly generate a copper microstructure with specific texture and specific distribution of boundary normals.
Slicing
To get the usually used 2d grain data, it is possible to slice 3d grains by different methods.
It might be reasonable to adjust the plotting convention such that the normal direction N points out of screen.
Grains intersecting a slice
Using the function intersected we can identify all grains that intersect a given plane. Lets simply add 3d the shapes of all grains intersecting the plane.