mymesh.rays.BoxBoxIntersection#

mymesh.rays.BoxBoxIntersection(box1, box2)[source]#

Intersection of two boxes.

Parameters:
  • box1 (tuple, array_like) – Bounds of the first box, formatted as ((xmin, xmax), (ymin, ymax), (zmin, zmax))

  • box2 (tuple, array_like) – Bounds of the second box, formatted as ((xmin, xmax), (ymin, ymax), (zmin, zmax))

Returns:

Intersection – True if the two boxes intersect.

Return type:

bool