Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r175 -r188 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 175) +++ 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", @@ -64,9 +64,9 @@ "default": 0, "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_IsSiphonBoxSystem.Bool" }, - "HasSiphonCapCutOut": { + "CrossGalleryQuantity": { "default": 0, - "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_Visu3D.HasSiphonCapCutOut" + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_BOX_CrossGalleryQuantity" }, "HasDoubleCutOut": { "default": 0, @@ -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", @@ -199,12 +216,18 @@ "SideStabiliserSynchroLinkageOrigin = ((BaseWidth - SideStabiliserSynchroLinkageLength) / 2) - 6", "VARSECTIE = '**************************************BACK STEEL*****************************************' ", "BackSteelVisualCorrectionZ = 2", + "VARSECTIE = '**************************************CROSS GALLERY*****************************************' ", + "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))", @@ -243,7 +266,7 @@ } }, { - "comment": "Cutout SiphonCap Left", + "comment": "Base Cutout SiphonCap Left", "if": "is(IsSiphonBoxSystem, 1)", "cube": { "center": { @@ -253,13 +276,13 @@ }, "size": { "x": "CutOutData_CapZ1_Width + 6", - "y": "ChipBoardThickness", + "y": "500", "z": "SiphonCap_Depth" } } }, { - "comment": "Cutout SiphonCap Right", + "comment": "Base Cutout SiphonCap Right", "if": "is(HasDoubleCutOut, 1)", "cube": { "center": { @@ -269,7 +292,7 @@ }, "size": { "x": "CutOutData_CapZ2_Width + 6", - "y": "ChipBoardThickness", + "y": "500", "z": "SiphonCap_Depth" } } @@ -529,7 +552,7 @@ } }, { - "comment": "Cutout SiphonCap Left", + "comment": "Wooden Back Cutout SiphonCap Left", "if": "is(IsSiphonBoxSystem, 1)", "cube": { "center": { @@ -539,13 +562,13 @@ }, "size": { "x": "CutOutData_CapZ1_Width + 18", - "y": "BackHeightInMM", - "z": "ChipBoardThickness" + "y": "500", + "z": "500" } } }, { - "comment": "Cutout SiphonCap Right", + "comment": "Wooden Back Cutout SiphonCap Right", "if": "is(HasDoubleCutOut, 1)", "cube": { "center": { @@ -555,8 +578,8 @@ }, "size": { "x": "CutOutData_CapZ2_Width + 18", - "y": "BackHeightInMM", - "z": "ChipBoardThickness" + "y": "500", + "z": "500" } } } @@ -814,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" } }, { @@ -1127,6 +1150,104 @@ "z": "-(BaseDepth + ChipBoardThickness + 1 - SiphonCap_Depth)" }, "uv": "@cube scale(0.01)" + }, + { + "comment": "CrossGalleryConnector Left", + "for": [ + "i = 0", + "i < CrossGalleryQuantity", + "i = i + 1" + ], + "geometry": { + "pass": true, + "url": "P-VIS-MVX.CrossGalleryConnector" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "2.5", + "y": "CrossGalleryHeight", + "z": "-(CrossGallerySeparationDistance * (i + 1))" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "CrossGalleryConnector Right", + "for": [ + "i = 0", + "i < CrossGalleryQuantity", + "i = i + 1" + ], + "geometry": { + "pass": true, + "url": "P-VIS-MVX.CrossGalleryConnector" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth - 2.5", + "y": "CrossGalleryHeight", + "z": "-(CrossGallerySeparationDistance * (i + 1))" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "Parametric CrossGallery", + "for": [ + "i = 0", + "i < CrossGalleryQuantity", + "i = i + 1" + ], + "use": { + "from": "Collection_GalleryFront_Contour", + "part": "P-VIS-MVX.GalleryFront", + "params": { + "length": "CrossGalleryLength" + } + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)", + "rotate": { + "y": 90 + }, + "translate": { + "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