resqpy.olio.box_utilities.single_cell_box

resqpy.olio.box_utilities.single_cell_box(cell)[source]

Returns a box containing the single given cell; protocol for box matches that of cell.

input argument (unmodified):
cell: numpy int array of shape (3)

indices of a cell within a 3D cartesian grid, usually in python protocol (kji ordering, zero base)

returns: numpy int array of shape (2, 3)

indices defining a minimal box containing a single cell; protocol is same as that of cell