Verify the conditions and set the ouput variables with the values of the flags of the boxes.
Mixing 2D/3D is enabled to compute, for example, 2.5D operations