/// <summary> /// Layer truck analysis constructor /// </summary> public Layer(CasePalletSolution sol, TruckProperties truckProperties, TruckConstraintSet constraintSet, int orientation) { switch (orientation) { case 0: _axisOrtho = HalfAxis.HAxis.AXIS_Z_P; break; case 1: _axisOrtho = HalfAxis.HAxis.AXIS_Z_N; break; default: _axisOrtho = HalfAxis.HAxis.AXIS_Z_P; break; } _palletLength = truckProperties.Length - 2.0 * constraintSet.MinDistancePalletTruckWall; _palletWidth = truckProperties.Width - 2.0 * constraintSet.MinDistancePalletTruckWall; Initialize(sol); }
Layer2D BuildLayer(CasePalletSolution palletSolution, TruckProperties truckProperties, TruckConstraintSet constraintSet , HalfAxis.HAxis axisOrtho, bool swapped) { return(new Layer2D(new Vector3D(palletSolution.PalletLength, palletSolution.PalletWidth, palletSolution.PalletHeight) , new Vector2D(truckProperties.Length, truckProperties.Width) , axisOrtho, swapped)); }