sample_S2_uv_mesh#

orix.sampling.sample_S2_uv_mesh(resolution: float, hemisphere: str = 'both', offset: float = 0, remove_pole_duplicates: bool = True) Vector3d[source]#

Return vectors of a UV mesh on a unit sphere S2 [Cajaravelli, 2015].

The mesh vertices are defined by the parametrization

\[\begin{split}x &= \sin(u)\cos(v), \\ y &= \sin(u)\sin(v), \\ z &= \cos(u).\end{split}\]
Parameters:
resolution

Maximum angle between nearest neighbour grid points, in degrees. The resolution of \(u\) and \(v\) are rounded up to get an integer number of equispaced polar and azimuthal grid lines.

hemisphere

Generate mesh points on the "upper", "lower" or "both" hemispheres. Default is "both".

offset

Mesh points are offset in angular space by this fraction of the step size, must be in the range [0..1]. Default is 0.

remove_pole_duplicates

If True the duplicate mesh grid points at the North and South pole of the unit sphere are removed. Default is True.

Returns:
vec

Vectors that sample the unit sphere.