scipy.spatial.HalfspaceIntersection.

add_halfspaces#

HalfspaceIntersection.add_halfspaces(halfspaces, restart=False)#

Process a set of additional new halfspaces.

Parameters:
halfspacesndarray of double, shape (n_new_ineq, ndim+1)

New halfspaces to add. The dimensionality (ndim) should match that of the initial halfspaces. Like in the constructor, these are stacked inequalites of the form Ax + b <= 0 in format [A; b]. The original feasible point must also be feasible for these new inequalities.

restartbool, optional

Whether to restart processing from scratch, rather than adding halfspaces incrementally.

Raises:
QhullError

Raised when Qhull encounters an error condition, such as geometrical degeneracy when options to resolve are not enabled.

See also

close

Notes

You need to specify incremental=True when constructing the object to be able to add halfspaces incrementally. Incremental addition of halfspaces is also not possible after close has been called.