How to draw the interpenetration curve for 2 prisms intersecting

How to draw the interpenetration curve for 2 prisms intersecting