discretize.TensorMesh.__getitem__#

TensorMesh.__getitem__(indices)[source]#

Return the boundaries of a single cell of the mesh.

Parameters:
indicesint, slice, or tuple of int and slices

Indices of a cell in the mesh. It can be a single integer or a single slice (for ravelled indices), or a tuple combining integers and slices for each direction.

Returns:
TensorCell or list of TensorCell