As a solution, you can to find the intersection (if any) of each edge of one polygon with the other polygon.
In the
SimpleGraph unit there's a function named IntersectLinePolygon. This function returns the intersections of an infinite line with a polygon in 2D space. You can easily modify this function to find intersection of a finite line with a polygon in 3D space.