Is it possible to make a safety boundary at intersection area of two plane?

Hi,

I want to create some restricted areas where the robot could automatically change to reduced mode.
Is it possible to create two planes and make the intersection area between them a safety boundary?

Here is the top view of the safety boundary I want.