verify_box_inside#

static Box.verify_box_inside(box_inner: Box, box_outer: Box, boundary_conditions: Dict[str, str] | None = None) bool#

Verify that box_inner is fully contained within box_outer.

Parameters:
box_innerBox

The inner box to check for containment.

box_outerBox

The outer bounding box.

boundary_conditionsdict, optional

Dictionary mapping each boundary (e.g. ‘x min’, ‘y max’) to its condition (e.g. ‘PML’, ‘Metal’).

Returns:
bool

True if box_inner is fully contained within box_outer, False otherwise.