Geometry from two planes

Simple user-defined geometry examples you can find e.g. in the Collection of examples from discourse.threejs.org
BeginnerExample step 02


Possibly ConvexGeometry => three.js docs is also an option to use the coordinates directly.