generalized cube projection just enough to cover both Kyle's and my
version. also made scad correspond to octave, although not generating
from there.