Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r146 -r147 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 146) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 147) @@ -59,8 +59,20 @@ "BomComponents": { "default": "##################################################################################################################", "source": "###################################################################################################################" + }, + "HF_FrontPanel": { + "default": "P-VIS-MVX.FrontPanel-Contour", + "source": "dummy" + }, + "HF_CrossGallery": { + "default": "P-VIS-MVX.CrossGallery-Contour", + "source": "dummy" } }, + "import": { + "Collection_FrontPanel_Contour": "HF_FrontPanel", + "Collection_CrossGallery_Contour": "HF_CrossGallery" + }, "parts": [ { "comment": "Variabelen", @@ -98,6 +110,14 @@ "VARSECTIE = '**************************************FRONT FIXING*****************************************' ", "FrontFixing_Suffix_For_ProductId = is(BoxSystemHeight, 'E') ? ((is(FrontType, 'GlassLow') or is(FrontType, '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'", + "ShowFrontPanel = is(IsInnerBoxSystem, '1') ? 'true' : 'false'", + "ShowGalleryFront = (is(IsInnerBoxSystem, '1') and is(FrontType, 'Gallery')) ? 'true' : 'false'", + "FrontPanelLength = InternalWidthFor3D - 126", + "GalleryFrontLength = InternalWidthFor3D - 111", + "PartIdFrontPanel = concat('P-VIS-MVX.FrontPanel-', BoxSystemHeight, FrontType)", "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", "ProductId_BoxSystemSide = concat('P-VIS-MVX.BoxSystemSide-', SideHeight, string(BoxSystemDepth))", "ProductId_BoxCap = concat('P-VIS-MVX.BoxCap-', string(BoxSystemDepth))", @@ -108,6 +128,7 @@ "ProductId_FrontFixing = concat('P-VIS-MVX.FrontFixing-', BoxSystemHeight, FrontFixing_Suffix_For_ProductId)", "ProductId_CoverCapFrontFixingInner = concat('P-VIS-MVX.CoverCapFrontFixingInner-', BoxSystemHeight, FrontFixing_Suffix_For_ProductId)", "ProductId_CoverCapFrontFixingOuter = concat('P-VIS-MVX.CoverCapFrontFixingOuter-', BoxSystemHeight)", + "ProductId_Frontpanel = P-VIS-MVX.FrontPanel-Contour", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -578,6 +599,81 @@ "y": "13.5" }, "uv": "@cube scale(0.01)" + }, + { + "comment": "DesignElementFront Low", + "if": "is(ShowFrontDesignElementLow, 'true')", + "material": "MaterialId_DesignElement", + "cube": { + "center": { + "x": "BaseWidth/2", + "y": "75/2 + ChipBoardThickness + 21.5", + "z": "-ChipBoardThickness/2 + 3.4" + }, + "size": { + "x": "InternalWidth - 104", + "y": "75", + "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": { + "from": "Collection_FrontPanel_Contour", + "part": "PartIdFrontPanel", + "params": { + "length": "FrontPanelLength" + } + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)", + "rotate": { + "y": 90 + }, + "translate": { + "x": 38, + "y": -14.5 + } + }, + { + "comment": "Parametric GalleryFront", + "if": "is(ShowGalleryFront, 'true')", + "use": { + "from": "Collection_CrossGallery_Contour", + "part": "crossgallery", + "params": { + "length": "GalleryFrontLength" + } + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)", + "rotate": { + "y": 90 + }, + "translate": { + "x": 31.5, + "y": 183, + "z": 1.8 + } } ] } \ No newline at end of file