hmm... fg bg problem persists. Must write custom code to split secand plane into pieces. Not the best use of my time, but it has to be done. Lets go 1h max to get this done
Save of 3D slices shapes.   The function drawNsidedPrism could be a useful addition to graphie-3d API, the rest is custom stuff for this exercise