Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r130 -r142 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 130) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 142) @@ -24,22 +24,34 @@ "default": "OG-M", "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_MVX_BoxSystemColour" }, + "IsInnerBoxSystem": { + "default": "0", + "source": "/CB_VW_ViewSection3/CB_VW_Merivobox/C_BOX_IsInnerBoxSystem.Bool" + }, "SideHeight": { "default": "M", "source": "/CB_VW_ViewSection3/CB_VW_Invisibles/C_MVX_SideHeight" }, - "SideType": { + "SideType": { "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" }, + "BackHeight": { + "default": "None", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_MVX_BackHeight" + }, "BackHeightInMM": { - "default": "148", + "default": "83", "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_BackHeightInMm" }, + "FrontAttachment": { + "default": "ET", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Afwerking/C_BOX_FrontAttachment" + }, "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" @@ -62,22 +74,28 @@ }, "var": [ "VARSECTIE = '**************************************GENERAL*****************************************' ", - "InternalWidthFor3D = InternalWidth", + "InternalWidthFor3D = InternalWidth", "BaseWidth = InternalWidth - 51", "BaseDepth = BoxSystemDepth - 26", "ChipBoardThickness = 16", "GlassLengthDesignElementSide = BoxSystemDepth - 90", - "BoxSystemCenterWidth = BaseWidth / 2", - "BackWidth = InternalWidthFor3D - 51", - "VARSECTIE = '**************************************MATERIALID*****************************************' ", + "BoxSystemCenterWidth = BaseWidth / 2", + "BackWidth = InternalWidthFor3D - 51", + "BackHeightFor3D = is(BackHeight, 'None') ? BoxSystemHeight : BackHeight", + "VARSECTIE = '**************************************MATERIALID*****************************************' ", "MaterialId_ChipBoard = concat('MT_ChipBoard_', BaseColour)", "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", "MaterialId_DesignElement = 'MT_Transparant_Glas'", + "VARSECTIE = '**************************************FRONT ATTACHMENT*****************************************' ", + "ShowFrontAttachmentBottom = is(IsInnerBoxSystem, '1') ? 'false' : 'true' ", + "ShowFrontAttachmentTop = is(IsInnerBoxSystem, '1') ? 'false' : is(BoxSystemHeight, 'E') ? 'true' : 'false' ", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", "ProductId_GallerySide = concat('P-VIS-MVX.GallerySide-', string(BoxSystemDepth))", - "ProductId_BackFixing = concat('P-VIS-MVX.BackFixing-', BoxSystemHeight)", + "ProductId_BackFixing = concat('P-VIS-MVX.BackFixing-', BackHeightFor3D)", + "ProductId_FrontAttachmentBottom = concat('P-VIS-MVX.FrontAttachmentBottom-', FrontAttachment)", + "ProductId_FrontAttachmentTop = concat('P-VIS-MVX.FrontAttachmentTop-', FrontAttachment)", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -139,10 +157,10 @@ "url": "P-VIS-MVX.CoverCapInner" }, "material": "MaterialId_BoxSystemColour", - "mirror": "xz", + "mirror": "xz", "translate": { "x": "BaseWidth", - "z": "-66" + "z": "-66" }, "uv": "@cube scale(0.01)" }, @@ -162,16 +180,16 @@ "url": "P-VIS-MVX.CoverCapOuter" }, "material": "MaterialId_BoxSystemColour", - "mirror": "xz", + "mirror": "xz", "translate": { "x": "BaseWidth", - "z": "-75" + "z": "-75" }, "uv": "@cube scale(0.01)" }, { "comment": "BoxCap Left", - "if": "is(SideType, 'BoxCap')", + "if": "is(SideType, 'BoxCap')", "geometry": { "pass": true, "url": "ProductId_BoxCap" @@ -181,21 +199,21 @@ }, { "comment": "BoxCap Right", - "if": "is(SideType, 'BoxCap')", + "if": "is(SideType, 'BoxCap')", "geometry": { "pass": true, "url": "ProductId_BoxCap" }, "material": "MaterialId_BoxSystemColour", - "mirror": "x", + "mirror": "x", "translate": { "x": "BaseWidth" }, "uv": "@cube scale(0.01)" }, { "comment": "BoxCoverFront Left", - "if": "is(SideType, 'BoxCover')", + "if": "is(SideType, 'BoxCover')", "geometry": { "pass": true, "url": "P-VIS-MVX.BoxCoverFront" @@ -205,43 +223,43 @@ }, { "comment": "BoxCoverBack Left", - "if": "is(SideType, 'BoxCover')", + "if": "is(SideType, 'BoxCover')", "geometry": { "pass": true, "url": "P-VIS-MVX.BoxCoverBack" }, - "translate": { - "z": "-BoxSystemDepth" + "translate": { + "z": "-BoxSystemDepth" }, "material": "MaterialId_BoxSystemColour", "uv": "@cube scale(0.01)" }, { "comment": "BoxCoverFront Right", - "if": "is(SideType, 'BoxCover')", + "if": "is(SideType, 'BoxCover')", "geometry": { "pass": true, "url": "P-VIS-MVX.BoxCoverFront" }, "material": "MaterialId_BoxSystemColour", - "mirror": "x", + "mirror": "x", "translate": { "x": "BaseWidth" }, "uv": "@cube scale(0.01)" }, { "comment": "BoxCoverBack Right", - "if": "is(SideType, 'BoxCover')", + "if": "is(SideType, 'BoxCover')", "geometry": { "pass": true, "url": "P-VIS-MVX.BoxCoverBack" }, "material": "MaterialId_BoxSystemColour", - "mirror": "x", + "mirror": "x", "translate": { "x": "BaseWidth", - "z": "-BoxSystemDepth" + "z": "-BoxSystemDepth" }, "uv": "@cube scale(0.01)" }, @@ -252,12 +270,12 @@ "cube": { "center": { "x": "-4.6", - "y": "113", - "z": "-GlassLengthDesignElementSide / 2 - 40" + "y": "134", + "z": "-(GlassLengthDesignElementSide / 2) - 40" }, "size": { "x": 8, - "y": 134, + "y": 95, "z": "GlassLengthDesignElementSide" } } @@ -269,12 +287,12 @@ "cube": { "center": { "x": "-4.6", - "y": "113", - "z": "-GlassLengthDesignElementSide / 2 - 40" + "y": "134", + "z": "-(GlassLengthDesignElementSide / 2) - 40" }, "size": { "x": 8, - "y": 134, + "y": 95, "z": "GlassLengthDesignElementSide" } }, @@ -285,7 +303,7 @@ }, { "comment": "GallerySide Left", - "if": "is(SideType, 'Gallery')", + "if": "is(SideType, 'Gallery')", "geometry": { "pass": true, "url": "ProductId_GallerySide" @@ -295,20 +313,20 @@ }, { "comment": "GallerySide Right", - "if": "is(SideType, 'Gallery')", + "if": "is(SideType, 'Gallery')", "geometry": { "pass": true, "url": "ProductId_GallerySide" }, "material": "MaterialId_BoxSystemColour", - "mirror": "x", + "mirror": "x", "translate": { "x": "BaseWidth" }, "uv": "@cube scale(0.01)" }, - { - "comment": "Wooden Back", + { + "comment": "Wooden Back", "if": "is(BackSideMaterial, 'Wood')", "material": "MaterialId_ChipBoard", "subtract": [ @@ -326,35 +344,87 @@ } } } - ] - }, - { - "comment": "BackFixing Left", + ] + }, + { + "comment": "BackFixing Left", "if": "is(BackSideMaterial, 'Wood')", "geometry": { "pass": true, "url": "ProductId_BackFixing" }, - "translate": { - "z": "-BoxSystemDepth" + "translate": { + "z": "-BoxSystemDepth" }, "material": "MaterialId_BoxSystemColour", "uv": "@cube scale(0.01)" - }, - { - "comment": "BackFixing Right", + }, + { + "comment": "BackFixing Right", "if": "is(BackSideMaterial, 'Wood')", "geometry": { "pass": true, "url": "ProductId_BackFixing" }, "material": "MaterialId_BoxSystemColour", - "mirror": "x", + "mirror": "x", "translate": { "x": "BaseWidth", - "z": "-BoxSystemDepth" + "z": "-BoxSystemDepth" }, "uv": "@cube scale(0.01)" - } + }, + { + "comment": "FrontAttachmentBottom Left", + "if": "is(ShowFrontAttachmentBottom, 'true')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentBottom" + }, + "translate": { + "x": "-4.7", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontAttachmentTop Left", + "if": "is(ShowFrontAttachmentTop, 'true')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentTop" + }, + "translate": { + "x": "-4.7", + "y": "174.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontAttachmentBottom Right", + "if": "is(ShowFrontAttachmentBottom, 'true')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentBottom" + }, + "translate": { + "x": "BaseWidth + 4.7", + "y": "13.5" + }, + "uv": "@cube scale(0.01)" + }, + { + "comment": "FrontAttachmentTop Right", + "if": "is(ShowFrontAttachmentTop, 'true')", + "geometry": { + "pass": true, + "url": "ProductId_FrontAttachmentTop" + }, + "translate": { + "x": "BaseWidth + 4.7", + "y": "174.5" + }, + "uv": "@cube scale(0.01)" + } ] } \ No newline at end of file