magpack.structures.domain_generator#

domain_generator(shape, points, cart=False)#

Generates Voronoi domains with random orientations.

Parameters:
shapearray_like

Shape of the final array.

pointsint

Number of seed points.

cartbool (optional)

Return cartesian coordinates if True, spherical coordinates if False.

Returns:
np.ndarray

Array with orientations (3, shape)

list

Coordinates of seed points.