Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r180 -r188 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 180) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 188) @@ -34,7 +34,7 @@ }, "SideType": { "default": "Pure", - "source": "/CB_VW_ConfiguratorTAB/CB_VW_Merivobox/C_MVX_SideType" + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_MVX_SideType" }, "BackSideMaterial": { "default": "Wood", @@ -112,6 +112,22 @@ "default": 0, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasValidDimensions" }, + "HasDistanceTrimLeft": { + "default": 0, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Dimensies/CB_VW_Section_NoTitle/CB_GRID_6/C_BOX_HasDistanceTrimLeft.Bool" + }, + "HasDistanceTrimRight": { + "default": 0, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Dimensies/CB_VW_Section_NoTitle/CB_GRID_6/C_BOX_HasDistanceTrimRight.Bool" + }, + "DistanceTrimLength": { + "default": 486, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_DistanceTrimLength" + }, + "DistanceTrimColour": { + "default": "OG", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Dimensies/CB_VW_Section_NoTitle/C_BOX_DistanceTrimColour" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -171,6 +187,7 @@ "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", "MaterialId_DesignElement = 'MT_Transparant_Glas'", "MaterialId_Runner = 'MT_BLUM_INGL'", + "MaterialId_DistanceTrim = concat('MT_Kunststof_', DistanceTrimColour)", "VARSECTIE = '**************************************COVERCAP INNER*****************************************' ", "CoverCapInner_TranslationY = is(SideHeight, 'E') ? 3.2 : 0", "CoverCapInner_TranslationZ = is(SideHeight, 'E') ? 2.5 : 0", @@ -200,14 +217,17 @@ "VARSECTIE = '**************************************BACK STEEL*****************************************' ", "BackSteelVisualCorrectionZ = 2", "VARSECTIE = '**************************************CROSS GALLERY*****************************************' ", - "CrossGallerySeparationDistance = BaseDepth / (CrossGalleryQuantity + 1)", + "CrossGallerySeparationDistance = is(SideType, 'BoxCover') ? BaseDepth / (CrossGalleryQuantity + 1) : BaseDepth / (CrossGalleryQuantity + 1)", + "CrossGalleryHeight = is(SideType, 'BoxCover') ? BoxSystemHeightInMm - 2.5 : BoxSystemHeightInMm", "CrossGalleryLength = InternalWidthFor3D - 111", "VARSECTIE = '***************************************SIPHON CAP****************************************' ", "SiphonCap_Depth = 248", "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", "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 = '**************************************DISTANCE TRIM*****************************************' ", + "DistanceTrimThickness = 25", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", @@ -817,9 +837,9 @@ "y": 90 }, "translate": { - "x": 31.5, - "y": "BoxSystemHeightInMm - 1", - "z": 1.8 + "x": "(111 - 51) / 2", + "y": "BoxSystemHeightInMm - 1 - 20", + "z": "-4.2" } }, { @@ -1145,7 +1165,7 @@ "material": "MaterialId_BoxSystemColour", "translate": { "x": "2.5", - "y": "SideHeightInMm", + "y": "CrossGalleryHeight", "z": "-(CrossGallerySeparationDistance * (i + 1))" }, "uv": "@cube scale(0.01)" @@ -1165,7 +1185,7 @@ "mirror": "x", "translate": { "x": "BaseWidth - 2.5", - "y": "SideHeightInMm", + "y": "CrossGalleryHeight", "z": "-(CrossGallerySeparationDistance * (i + 1))" }, "uv": "@cube scale(0.01)" @@ -1190,10 +1210,44 @@ "y": 90 }, "translate": { - "x": 31.5, - "y": "SideHeightInMm", - "z": "-((CrossGallerySeparationDistance * (i + 1)) + 10.2)" + "x": "(111 - 51) / 2", + "y": "CrossGalleryHeight - 20", + "z": "-(CrossGallerySeparationDistance * (i + 1))" } + }, + { + "comment": "Distance Trim Left", + "if": "is(HasDistanceTrimLeft, 1)", + "material": "MaterialId_DistanceTrim", + "cube": { + "center": { + "x": "-(SideDistanceBetweenBaseAndCabinetWall + (DistanceTrimThickness / 2))", + "y": "34 - 7", + "z": "-((DistanceTrimLength / 2) + 3)" + }, + "size": { + "x": "DistanceTrimThickness", + "y": "50", + "z": "DistanceTrimLength" + } + } + }, + { + "comment": "Distance Trim Right", + "if": "is(HasDistanceTrimRight, 1)", + "material": "MaterialId_DistanceTrim", + "cube": { + "center": { + "x": "BaseWidth + SideDistanceBetweenBaseAndCabinetWall + (DistanceTrimThickness / 2)", + "y": "34 - 7", + "z": "-((DistanceTrimLength / 2) + 3)" + }, + "size": { + "x": "DistanceTrimThickness", + "y": "50", + "z": "DistanceTrimLength" + } + } } ] } \ No newline at end of file