/// <summary> /// Load a new empty container with the supplied list of boxes. /// </summary> /// <param name="boxes">The boxes to be loaded into the container</param> /// <param name="sw">The output log file</param> private static void LoadContainer(List<Box> boxes, StreamWriter sw) { // Setup an empty container with the desired size. Container container = new Container(ContainerWidthX, ContainerHeightY, ContainerDepthZ); LargestAreaFirstFit laff = new LargestAreaFirstFit(boxes, container); container = laff.Calculate(); // Show where the boxes are now located in the container ShowContainer(container, sw); }
/// <summary> /// Load a new empty container with the supplied list of boxes. /// </summary> /// <param name="boxes">The boxes to be loaded into the container</param> /// <param name="sw">The output log file</param> private static void LoadContainer(List <Box> boxes, StreamWriter sw) { // Setup an empty container with the desired size. Container container = new Container(ContainerWidthX, ContainerHeightY, ContainerDepthZ); LargestAreaFirstFit laff = new LargestAreaFirstFit(boxes, container); container = laff.Calculate(); // Show where the boxes are now located in the container ShowContainer(container, sw); }