Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r155 -r157 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 155) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 157) @@ -114,8 +114,8 @@ "FrontFixing_Suffix_For_ProductId = is(BoxSystemHeight, 'E') ? (oneOf(FrontType, 'GlassLow', 'GlassHigh') ? 'DesignElement' : 'Gallery') : ''", "ShowFrontFixingAdapter = (is(IsInnerBoxSystem, '1') and is(BoxSystemHeight, 'E') and is(FrontType, 'GlassLow')) ? 'true' : 'false'", "VARSECTIE = '**************************************FRONT*****************************************' ", - "ShowFrontDesignElementLow = (is(IsInnerBoxSystem, '1') and is(FrontType, 'GlassLow')) ? 'true' : 'false'", - "ShowFrontDesignElementHigh = (is(IsInnerBoxSystem, '1') and is(FrontType, 'GlassHigh')) ? 'true' : 'false'", + "ShowDesignElementFront = (is(IsInnerBoxSystem, '1') and oneOf(FrontType, 'GlassLow', 'GlassHigh')) ? 'true' : 'false'", + "HeightDesignElementFront = is(FrontType, 'GlassLow') ? 75 : 142.5", "ShowFrontPanel = is(IsInnerBoxSystem, '1') ? 'true' : 'false'", "ShowGalleryFront = (is(IsInnerBoxSystem, '1') and is(FrontType, 'Gallery')) ? 'true' : 'false'", "FrontPanelLength = InternalWidthFor3D - 126", @@ -610,40 +610,23 @@ "uv": "@cube scale(0.01)" }, { - "comment": "DesignElementFront Low", - "if": "is(ShowFrontDesignElementLow, 'true')", + "comment": "DesignElementFront", + "if": "is(ShowDesignElementFront, 'true')", "material": "MaterialId_DesignElement", "cube": { "center": { "x": "BaseWidth/2", - "y": "75/2 + ChipBoardThickness + 21.5", + "y": "HeightDesignElementFront/2 + ChipBoardThickness + 21.5", "z": "-ChipBoardThickness/2 + 3.4" }, "size": { "x": "InternalWidth - 104", - "y": "75", + "y": "HeightDesignElementFront", "z": "8" } } }, { - "comment": "DesignElementFront High", - "if": "is(ShowFrontDesignElementHigh, 'true')", - "material": "MaterialId_DesignElement", - "cube": { - "center": { - "x": "BaseWidth/2", - "y": "142.5/2 + ChipBoardThickness + 21.5", - "z": "-ChipBoardThickness/2 + 3.4" - }, - "size": { - "x": "InternalWidth - 104", - "y": "142.5", - "z": "8" - } - } - }, - { "comment": "Parametric FrontPanel", "if": "is(ShowFrontPanel, 'true')", "use": {