sample_S2#

orix.sampling.sample_S2(resolution: float, method: str = 'spherified_cube_edge', **kwargs) Vector3d[source]#

Return unit vectors that sample S2 with a specific angular resolution.

Parameters:
resolution

Maximum angle between nearest neighbour grid points, in degrees.

method

Sphere meshing method. Options are: "uv", "equal_area", "normalized_cube", "spherified_cube_edge", "spherified_cube_corner", "icosahedral", "hexagonal", "random". The default is "spherified_cube_edge".

**kwargs

Keyword arguments passed to the sampling function. For details see the sampling functions listed below.

Returns:
vec

Vectors that sample the unit sphere.

Examples using sample_S2#

Rotations mapping the fundamental sector on S2

Rotations mapping the fundamental sector on S2

Zoom region inset

Zoom region inset