示例#1
0
 /// <summary>
 /// Inner dimensions
 /// </summary>
 /// <param name="optimizer">Parent optimizer class</param>
 /// <returns>Inner dimensions stored in Vector3D</returns>
 public Vector3D InnerDimensions(BoxProperties boxProperties)
 {
     return(new Vector3D(
                _arrangement._iLength * boxProperties.Dim(Dim0)
                , _arrangement._iWidth * boxProperties.Dim(Dim1)
                , _arrangement._iHeight * boxProperties.Dim(Dim2)
                ));
 }
示例#2
0
 /// <summary>
 ///  Outer dimensions
 /// </summary>
 /// <param name="optimizer">Parent optimizer class</param>
 /// <returns>Outer dimensions stored in Vector3D</returns>
 public Vector3D OuterDimensions(BoxProperties boxProperties, CaseOptimConstraintSet constraintSet)
 {
     return(new Vector3D(
                _arrangement._iLength * boxProperties.Dim(Dim0) + constraintSet.WallThickness * constraintSet.NoWalls[0]
                , _arrangement._iWidth * boxProperties.Dim(Dim1) + constraintSet.WallThickness * constraintSet.NoWalls[1]
                , _arrangement._iHeight * boxProperties.Dim(Dim2) + constraintSet.WallThickness * constraintSet.NoWalls[2]
                ));
 }
示例#3
0
 public static void GetDimensions(
     BoxProperties boxProperties
     , HalfAxis.HAxis boxOrientation
     , PackArrangement arrangement
     , ref double length, ref double width, ref double height)
 {
     if (null == boxProperties)
     {
         return;
     }
     length = arrangement._iLength * boxProperties.Dim(PackProperties.DimIndex0(boxOrientation));
     width  = arrangement._iWidth * boxProperties.Dim(PackProperties.DimIndex1(boxOrientation));
     height = arrangement._iHeight * boxProperties.Dim(3 - PackProperties.DimIndex0(boxOrientation) - PackProperties.DimIndex1(boxOrientation));
 }
 public static void GetDimensions(
     BoxProperties boxProperties
     , HalfAxis.HAxis boxOrientation
     , PackArrangement arrangement
     , ref double length, ref double width, ref double height)
 {
     if (null == boxProperties) return;
     length = arrangement._iLength * boxProperties.Dim(PackProperties.DimIndex0(boxOrientation));
     width = arrangement._iWidth * boxProperties.Dim(PackProperties.DimIndex1(boxOrientation));
     height = arrangement._iHeight * boxProperties.Dim(3 - PackProperties.DimIndex0(boxOrientation) - PackProperties.DimIndex1(boxOrientation));
 }
示例#5
0
 public double BoxHeight(BoxProperties boxProperties)
 {
     return(boxProperties.Dim(Dim2));
 }
示例#6
0
 public double BoxWidth(BoxProperties boxProperties)
 {
     return(boxProperties.Dim(_dim1));
 }
示例#7
0
 public double BoxLength(BoxProperties boxProperties)
 {
     return(boxProperties.Dim(_dim0));
 }
 /// <summary>
 /// Inner dimensions
 /// </summary>
 /// <param name="optimizer">Parent optimizer class</param>
 /// <returns>Inner dimensions stored in Vector3D</returns>
 public Vector3D InnerDimensions(BoxProperties boxProperties)
 {
     return new Vector3D(
         _arrangement._iLength * boxProperties.Dim(Dim0)
         , _arrangement._iWidth * boxProperties.Dim(Dim1)
         , _arrangement._iHeight * boxProperties.Dim(Dim2)
         );
 }
 public double BoxWidth(BoxProperties boxProperties)
 {
     return boxProperties.Dim(_dim1);
 }
 public double BoxLength(BoxProperties boxProperties)
 {
     return boxProperties.Dim(_dim0);
 }
 public double BoxHeight(BoxProperties boxProperties)
 {
     return boxProperties.Dim(Dim2);
 }
 /// <summary>
 ///  Outer dimensions
 /// </summary>
 /// <param name="optimizer">Parent optimizer class</param>
 /// <returns>Outer dimensions stored in Vector3D</returns>
 public Vector3D OuterDimensions(BoxProperties boxProperties, CaseOptimConstraintSet constraintSet)
 {
     return new Vector3D(
         _arrangement._iLength * boxProperties.Dim(Dim0) + constraintSet.WallThickness * constraintSet.NoWalls[0]
         , _arrangement._iWidth * boxProperties.Dim(Dim1) + constraintSet.WallThickness * constraintSet.NoWalls[1]
         , _arrangement._iHeight * boxProperties.Dim(Dim2) + constraintSet.WallThickness * constraintSet.NoWalls[2]
         );
 }