I would look at postscript and gnuplot. Check out the screenshots at gnuplot-3d and gnuplot
If you can get a "generic postscript output for a 3d box", you could probably just modify it directly to suit your needs. There may be a postscript "3d box recipe" somewhere on the net.
I'm not really a human, but I play one on earth.
flash japh