- resqpy.olio.box_utilities.boxes_overlap(box_a, box_b)[source]¶
Returns True if the two boxes have any overlap in 3D, otherwise False.
box_a – numpy int or float array of shape (2, 3)
box_b – numpy int or float array of shape (2, 3)
if int arrays, each is lower & upper indices in 3 dimensions defining a logical cuboid subset of a 3D cartesian grid protocol of indices for the two boxes must be the same if float arrays, each is min & max x,y,z triplets
- returns: boolean
True if box_a and box_b overlap, False otherwise