Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r170 -r171 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 170) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 171) @@ -64,8 +64,12 @@ "default": "SY_Recht_M_D240_B160", "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_MVX_CutOutCode.Z1" }, + "CutOutCode_Z2": { + "default": "SY_Recht_M_D240_B300", + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_MVX_CutOutCode.Z2" + }, "HasDoubleCutOut": { - "default": 0, + "default": 1, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOut_HasDoubleCutOut.Bool" }, "HasSiphonCapCutOut": { @@ -85,7 +89,7 @@ "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOutData.CapZ1.Width" }, "CutOutData_CapZ2_Width": { - "default": 160, + "default": 300, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_CutOutData.CapZ2.Width" }, "BomComponents": { @@ -177,6 +181,7 @@ "VARSECTIE = '***************************************SIPHON CAP****************************************' ", "SiphonCap_Depth = 248", "SiphonCap_CenterPositionX_Z1 = CutOutData_LeftX_Width + (CutOutData_CapZ1_Width / 2)", + "SiphonCap_CenterPositionX_Z2 = CutOutData_LeftX_Width + CutOutData_CapZ1_Width + CutOutData_CenterM_Width + (CutOutData_CapZ2_Width / 2)", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", @@ -191,7 +196,8 @@ "ProductId_Frontpanel = P-VIS-MVX.FrontPanel-Contour", "ProductId_Runner = concat('P-VIS-MVX.Runner-', string(BoxSystemDepth))", "ProductId_BackSteel = concat('P-VIS-MVX.BackSteel-', BackHeightFor3D, string(InternalWidthFor3D))", - "ProductId_SiphonCap = concat('P-VIS-MVX.SiphonCap-', CutOutCode_Z1)", + "ProductId_SiphonCap_Z1 = concat('P-VIS-MVX.SiphonCap-', CutOutCode_Z1)", + "ProductId_SiphonCap_Z2 = concat('P-VIS-MVX.SiphonCap-', CutOutCode_Z2)", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -228,6 +234,22 @@ "z": "SiphonCap_Depth - 6" } } + }, + { + "comment": "Cutout SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "ChipBoardThickness/2", + "z": "-(BaseDepth - ((SiphonCap_Depth - 6)/2))" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 4", + "y": "ChipBoardThickness", + "z": "SiphonCap_Depth - 6" + } + } } ] }, @@ -498,6 +520,22 @@ "z": "ChipBoardThickness" } } + }, + { + "comment": "Cutout SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "cube": { + "center": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "BackHeightInMM / 2", + "z": "-(BaseDepth + (ChipBoardThickness / 2))" + }, + "size": { + "x": "CutOutData_CapZ2_Width + 4", + "y": "BackHeightInMM", + "z": "ChipBoardThickness" + } + } } ] }, @@ -1042,15 +1080,30 @@ "if": "is(HasSiphonCapCutOut, 1)", "geometry": { "pass": true, - "url": "ProductId_SiphonCap" + "url": "ProductId_SiphonCap_Z1" }, "material": "MaterialId_BoxSystemColour", "translate": { - "x": "CutOutData_LeftX_Width + (CutOutData_CapZ1_Width / 2)", + "x": "SiphonCap_CenterPositionX_Z1", "y": "ChipBoardThickness", "z": "-(BaseDepth - SiphonCap_Depth)" }, "uv": "@cube scale(0.01)" + }, + { + "comment": "SiphonCap Right", + "if": "is(HasDoubleCutOut, 1)", + "geometry": { + "pass": true, + "url": "ProductId_SiphonCap_Z2" + }, + "material": "MT_Debug_ORANGE", + "translate": { + "x": "SiphonCap_CenterPositionX_Z2", + "y": "ChipBoardThickness", + "z": "-(BaseDepth - SiphonCap_Depth)" + }, + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file