For CAD:
https://github.com/Jack000/SVGnest/commit/d7182d6e2630359039e7b8ea3161f5de94718925
http://svgnest.com/
Nesting Software