Leverage 3D printing for automated packaging