Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r168 -r169 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 168) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 169) @@ -10,7 +10,7 @@ }, "InternalWidth": { "default": 564, - "source": "/CB_VW_ConfiguratorTAB/CB_VW_Dimensies/CB_VW_Section_NoTitle/CB_GRID_4/C_BOX_InternalWidth/1" + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_InternalWidth" }, "BoxSystemHeight": { "default": "M", @@ -101,7 +101,9 @@ "VARSECTIE = '**************************************GENERAL*****************************************' ", "InternalWidthFor3D = InternalWidth", "BaseWidth = InternalWidthFor3D - 51", - "BaseDepth = BoxSystemDepth - 26", + "BaseDepthForWood = BoxSystemDepth - 26", + "BaseDepthForSteel = BoxSystemDepth - 22", + "BaseDepth = is(BackSideMaterial, 'Wood') ? BaseDepthForWood : BaseDepthForSteel", "ChipBoardThickness = 16", "GlassLengthDesignElementSide = BoxSystemDepth - 90", "BoxSystemCenterWidth = BaseWidth / 2", @@ -142,6 +144,8 @@ "SideStabiliser_LockingPieceTranslation = lookup(SideStabiliser_LockingPieceTranslationMatrix, [['=', string(BoxSystemDepth)], ['#', 'depth']]).depth", "SideStabiliserSynchroLinkageLength = InternalWidthFor3D - 231", "SideStabiliserSynchroLinkageOrigin = ((BaseWidth - SideStabiliserSynchroLinkageLength) / 2) - 6", + "VARSECTIE = '**************************************BACK STEEL*****************************************' ", + "BackSteelVisualCorrectionZ = 2", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", @@ -155,6 +159,7 @@ "ProductId_CoverCapFrontFixingOuter = concat('P-VIS-MVX.CoverCapFrontFixingOuter-', BoxSystemHeight)", "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))", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -952,6 +957,21 @@ "slices": 16 }, "material": "MT_Blum_Kunststof_Wit" + }, + { + "comment": "BackSteel", + "if": "is(BackSideMaterial, 'Steel')", + "geometry": { + "pass": true, + "url": "ProductId_BackSteel" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "BaseWidth/2", + "y": "ChipBoardThickness", + "z": "-(BaseDepth + BackSteelVisualCorrectionZ)" + }, + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file