How to compute volume of intersection of non-axis-aligned cuboids in 3D?
You can use CGAL's half_space_intersection_3 or half_space_intersection_with_construction_3 functions, where the half-spaces are defined by the faces of the cuboids.