I need to cut a cube by an inclined plane.
- The cube is placed in the center of the space.
- The cutter geometry must have $2$ heights: $H_1$ and $H_2$ and $W$ (the side length).
I would like to define the plane by a vector as $(\mathbf V_x, \mathbf V_y, \mathbf V_z)$, $d$ where $d$ is the distance from the cube center and the plane.
$\mathbf V_y$ is supposed to be $0$ and $\displaystyle d=\sqrt{\mathbf V_x^2+\mathbf V_z^2}$.
Can you help me? to define $\mathbf V_x$ and $\mathbf V_z$ if I know $H_1$ and $H_2$ and $W$?
Thanks!

Hint: As you've assumed the centre of cube as origin, the coordinates of the point where the green line intersects the plane be $A(\frac{W}{2},-\frac{W}{2}+h_2,\frac{W}{2})$ and $B(-\frac{W}{2},-\frac{W}{2}+h_1,\frac{W}{2})$. So, the coordinates of the point below $A$ (inside the paper) will be $C(\frac{W}{2},-\frac{W}{2}+h_2,-\frac{W}{2})$.
Now, from the three position vectors, find the normal vector of the plane. To find the constant term in the equation of plane, use the fact that $d$ is distance between plane and origin.