Index: development/Visualisatie_3D/Parametric_3D_models/LBX.json =================================================================== diff -u -r133 -r136 --- development/Visualisatie_3D/Parametric_3D_models/LBX.json (.../LBX.json) (revision 133) +++ development/Visualisatie_3D/Parametric_3D_models/LBX.json (.../LBX.json) (revision 136) @@ -428,6 +428,10 @@ "VARSECTIE = '***************************************SIPHON CUTOUT****************************************' ", "CutOutData_LeftX_Width = CutOutData_LeftX_Width_Customer > 0 ? CutOutData_LeftX_Width_Customer : CutOutData_LeftX_Width_Suggested", "CutOutData_CenterM_Width = CutOutData_CenterM_Width_Customer > 0 ? CutOutData_CenterM_Width_Customer : CutOutData_CenterM_Width_Suggested", + "X_position_center_Z1 = (CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "X_position_center_Z2 = CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "Z_position_center_cutout = -(BaseDepth - (248/2) + ChipBoardThickness + 8)", + "Z_position_center_cutout_back = -(BaseDepth - (248/2) + ChipBoardThickness + 2)", "VARSECTIE = '***************************************MATERIAL / DO NOT DELIVER****************************************' ", "MaterialId_DistanceTrim = is(DND_DistanceTrim, 1) ? 'MT_DND_Options' : MaterialDistanceTrimNoDND", "MaterialId_Runner = is(DND_Runner, 1) ? 'MT_DND_Options' : 'MT_BLUM_INGL' ", @@ -483,7 +487,7 @@ ] }, { - "comment": "Base", + "comment": "Bottom", "material": "MaterialId_ChipBoard", "subtract": [ { @@ -501,7 +505,7 @@ } }, { - "comment": "Cutout Base Left", + "comment": "Cutout Bottom Left", "cube": { "center": { "x": "BaseRabbetWidth/2", @@ -516,7 +520,7 @@ } }, { - "comment": "Cutout Base Right", + "comment": "Cutout Bottom Right", "cube": { "center": { "x": "BaseWidth - BaseRabbetWidth/2", @@ -547,7 +551,7 @@ } }, { - "comment": "Cutout Base Sink Left", + "comment": "Cutout Bottom Sink Left", "if": "is(IsSink, 1)", "cube": { "center": { @@ -563,7 +567,7 @@ } }, { - "comment": "Cutout Base Sink Right", + "comment": "Cutout Bottom Sink Right", "if": "is(IsSink, 1)", "cube": { "center": { @@ -579,13 +583,13 @@ } }, { - "comment": "Cutout SiphonCap Base Left", + "comment": "Cutout SiphonCap Bottom Left", "if": "is(HasSiphonCapCutOut, 1)", "cube": { "center": { - "x": "(CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "x": "X_position_center_Z1", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 8)" + "z": "Z_position_center_cutout" }, "size": { "x": "CutOutData_CapZ1_Width + 4", @@ -595,13 +599,13 @@ } }, { - "comment": "Cutout SiphonCap Base Right", + "comment": "Cutout SiphonCap Bottom Right", "if": "is(HasDoubleCutOut, 1)", "cube": { "center": { - "x": "CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "x": "X_position_center_Z2", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 8)" + "z": "Z_position_center_cutout" }, "size": { "x": "CutOutData_CapZ2_Width + 4", @@ -651,7 +655,7 @@ } }, { - "comment": "Cutout Base Sink", + "comment": "Cutout Mat Sink", "if": "is(IsSink, 1)", "cube": { "center": { @@ -667,13 +671,13 @@ } }, { - "comment": "Cutout SiphonCap base Left", + "comment": "Cutout SiphonCap Mat Left", "if": "is(HasSiphonCapCutOut, 1)", "cube": { "center": { - "x": "(CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "x": "X_position_center_Z1", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 8)" + "z": "Z_position_center_cutout" }, "size": { "x": "CutOutData_CapZ1_Width + 14", @@ -683,13 +687,13 @@ } }, { - "comment": "Cutout SiphonCap base Right", + "comment": "Cutout SiphonCap Mat Right", "if": "is(HasDoubleCutOut, 1)", "cube": { "center": { - "x": "CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "x": "X_position_center_Z2", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 8)" + "z": "Z_position_center_cutout" }, "size": { "x": "CutOutData_CapZ2_Width + 14", @@ -1099,14 +1103,14 @@ "if": "is(HasSiphonCapCutOut, 1)", "cube": { "center": { - "x": "(CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "x": "X_position_center_Z1", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 2)" + "z": "Z_position_center_cutout_back" }, "size": { "x": "CutOutData_CapZ1_Width + 18", "y": 500, - "z": 248 + "z": 500 } } }, @@ -1115,14 +1119,14 @@ "if": "is(HasDoubleCutOut, 1)", "cube": { "center": { - "x": "CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "x": "X_position_center_Z2", "y": "-ChipBoardThickness/2", - "z": "-(BaseDepth - (248/2) + ChipBoardThickness + 2)" + "z": "Z_position_center_cutout_back" }, "size": { "x": "CutOutData_CapZ2_Width + 18", "y": 500, - "z": 248 + "z": 500 } } } @@ -1700,7 +1704,7 @@ "url": "ProductId_SiphonCapLeft" }, "translate": { - "x": "(CutOutData_CapZ1_Width/2) + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem", + "x": "X_position_center_Z1", "y": 0, "z": "-(BaseDepth - 248 + ChipBoardThickness + 1)" }, @@ -1715,7 +1719,7 @@ "url": "ProductId_SiphonCapRight" }, "translate": { - "x": "CutOutData_CapZ1_Width + 3 + CutOutData_LeftX_Width - DistanceInsideCabinetToInsideBoxSystem + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width/2)", + "x": "X_position_center_Z2", "y": 0, "z": "-(BaseDepth - 248 + ChipBoardThickness + 1)" },