sample_S2_random_mesh#
- orix.sampling.sample_S2_random_mesh(resolution: float, seed: int | None = None) Vector3d [source]#
Return vectors of a random mesh on S2.
- Parameters:
- resolution
The expected mean angle between nearest neighbor grid points in degrees.
- seed
Passed to
numpy.random.default_rng()
, defaults to None which will give a “new” random result each time.
- Returns:
vec
Vectors that sample the unit sphere.
References