http://tug.org/TUGboat/tb40-2/tb125adams-3d.pdf
and
https://community.carbide3d.com/t/a-different-sort-of-box/36...
and for more see:
https://willadams.gitbook.io/design-into-3d/programming