resqpy.olio.box_utilities.cell_in_box¶
- resqpy.olio.box_utilities.cell_in_box(cell, box)[source]¶
Returns True if cell is within box, otherwise False.
- input arguments (unmodified):
- cell: numpy int array of shape (3)
index of a cell in a 3D cartesian grid, in the same protocol as box (usually python protocol kji, zero base)
- box: numpy int array of shape (2, 3)
lower & upper indices in 3 dimensions defining a logical cuboid subset of a 3D cartesian grid in the same protocol as cell
- returns: boolean
True if cell is within box, False otherwise