radtools.BCT.voronoi_cell#

method

BCT.voronoi_cell(reciprocal=False, normalize=False)#

Computes Voronoy edges around (0,0,0) point.

Parameters:
reciprocalbool, default False

Whether to use reciprocal or real cell.

Returns:
edges(N, 2, 3) numpy.ndarray

N edges of the Voronoi cell around (0,0,0) point. Each elements contains two vectors of the points of the voronoi vertices forming an edge.

vertices(M, 3) numpy.ndarray

M vertices of the Voronoi cell around (0,0,0) point. Each element is a vector \(v = (v_x, v_y, v_z)\).

normalizebool, default False

Whether to normalize corresponding vectors to have the volume equal to one.