get_sample_fundamental#
- orix.sampling.get_sample_fundamental(resolution: int | float = 2, point_group: Symmetry | None = None, space_group: int | None = None, method: str = 'cubochoric', **kwargs) Rotation [source]#
Return an equispaced grid of rotations within a fundamental zone.
- Parameters:
- resolution
The characteristic distance between a rotation and its neighbour in degrees. Default is 2 degrees.
- point_group
One of the 11 proper point groups. If not given,
space_group
must be.- space_group
Between 1 and 231. Must be given if
point_group
is not.- method
"cubochoric"
(default),"haar_euler"
or"quaternion"
. Seeuniform_SO3_sample()
for details.- **kwargs
Keyword arguments passed on to the sampling method.
- Returns:
rot
Grid of rotations lying within the specified fundamental zone.
See also
Examples
>>> from orix.quaternion.symmetry import Oh >>> from orix.sampling import get_sample_fundamental >>> rot = get_sample_fundamental(5, point_group=Oh) >>> rot Rotation (6579,) [[ 0.877 -0.2774 -0.2774 -0.2774] [ 0.877 -0.2884 -0.2884 -0.2538] [ 0.877 -0.2986 -0.2986 -0.2291] ... [ 0.877 0.2986 0.2986 0.2291] [ 0.877 0.2884 0.2884 0.2538] [ 0.877 0.2774 0.2774 0.2774]]