phantom#
Phantom microstructures for testing: grains, misoriented cells and twins, on a reconstruction grid.
Functions
|
Rotation matrices about axes by angles (right-handed). |
|
Sample a 2D Brownian random field of rotation vectors: increments grow like a random walk with distance. |
|
Make a disk-shaped polycrystal of grains with misoriented cells and twin lamellae. |
|
Draw rotations uniformly over SO(3). |
|
Draw small rotations: rotation vectors with each component normal with standard deviation sigma_deg. |
|
Turn a phantom from |
|
Label points by their nearest seed. |