Enter .
While usually called "load planning," this is technically 3D nesting. Software like helps pack boxes of different sizes into shipping containers or truck beds to maximize space utilization. 3d nesting software