Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r183 -r188 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 183) +++ 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", @@ -217,7 +217,8 @@ "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", @@ -836,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" } }, { @@ -1164,7 +1165,7 @@ "material": "MaterialId_BoxSystemColour", "translate": { "x": "2.5", - "y": "SideHeightInMm", + "y": "CrossGalleryHeight", "z": "-(CrossGallerySeparationDistance * (i + 1))" }, "uv": "@cube scale(0.01)" @@ -1184,7 +1185,7 @@ "mirror": "x", "translate": { "x": "BaseWidth - 2.5", - "y": "SideHeightInMm", + "y": "CrossGalleryHeight", "z": "-(CrossGallerySeparationDistance * (i + 1))" }, "uv": "@cube scale(0.01)" @@ -1209,9 +1210,9 @@ "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))" } }, { @@ -1221,7 +1222,7 @@ "cube": { "center": { "x": "-(SideDistanceBetweenBaseAndCabinetWall + (DistanceTrimThickness / 2))", - "y": "34/2", + "y": "34 - 7", "z": "-((DistanceTrimLength / 2) + 3)" }, "size": { @@ -1238,7 +1239,7 @@ "cube": { "center": { "x": "BaseWidth + SideDistanceBetweenBaseAndCabinetWall + (DistanceTrimThickness / 2)", - "y": "34/2", + "y": "34 - 7", "z": "-((DistanceTrimLength / 2) + 3)" }, "size": {