pyvista.core.utilities.is_inside_bounds

pyvista.core.utilities.is_inside_bounds#

is_inside_bounds(point, bounds)[source]#

Check if a point is inside a set of bounds.

This is implemented through recursion so that this is N-dimensional.

Parameters:
pointsequence[float]

Three item cartesian point (i.e. [x, y, z]).

boundssequence[float]

Six item bounds in the form of (x_min, x_max, y_min, y_max, z_min, z_max).

Returns:
bool

True when point is inside bounds.