Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r126 -r127 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 126) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 127) @@ -32,6 +32,14 @@ "default": "Pure", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Merivobox/C_MVX_SideType" }, + "BackSideMaterial": { + "default": "Wood", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_BOX_BackSideMaterial" + }, + "BackHeightInMM": { + "default": "148", + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_BackHeightInMm" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -54,10 +62,13 @@ }, "var": [ "VARSECTIE = '**************************************GENERAL*****************************************' ", + "InternalWidthFor3D = InternalWidth", "BaseWidth = InternalWidth - 51", "BaseDepth = BoxSystemDepth - 26", "ChipBoardThickness = 16", "GlassLengthDesignElementSide = BoxSystemDepth - 96", + "BoxSystemCenterWidth = BaseWidth / 2", + "BackWidth = InternalWidthFor3D - 38", "VARSECTIE = '**************************************MATERIALID*****************************************' ", "MaterialId_ChipBoard = concat('MT_ChipBoard_', BaseColour)", "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", @@ -294,6 +305,27 @@ "x": "BaseWidth" }, "uv": "@cube scale(0.01)" - } + }, + { + "comment": "Wooden Back", + "if": "is(BackSideMaterial, 'Wood')", + "material": "MaterialId_ChipBoard", + "subtract": [ + { + "cube": { + "center": { + "x": "BoxSystemCenterWidth", + "y": "BackHeightInMM / 2", + "z": "-BaseDepth - (ChipBoardThickness / 2)" + }, + "size": { + "x": "BackWidth", + "y": "BackHeightInMM", + "z": "ChipBoardThickness" + } + } + } + ] + } ] } \ No newline at end of file