Index: development/Visualisatie_3D/Parametric_3D_models/MVX.json =================================================================== diff -u -r179 -r180 --- development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 179) +++ development/Visualisatie_3D/Parametric_3D_models/MVX.json (.../MVX.json) (revision 180) @@ -201,6 +201,7 @@ "BackSteelVisualCorrectionZ = 2", "VARSECTIE = '**************************************CROSS GALLERY*****************************************' ", "CrossGallerySeparationDistance = BaseDepth / (CrossGalleryQuantity + 1)", + "CrossGalleryLength = InternalWidthFor3D - 111", "VARSECTIE = '***************************************SIPHON CAP****************************************' ", "SiphonCap_Depth = 248", "CutOutData_LeftX_Width = (CutOutData_LeftX_Width_Customer > 0) ? CutOutData_LeftX_Width_Customer : CutOutData_LeftX_Width_Suggested", @@ -1131,47 +1132,45 @@ "uv": "@cube scale(0.01)" }, { - "comment": "CrossGalleryConnector", + "comment": "CrossGalleryConnector Left", "for": [ "i = 0", - "i < CrossGalleryQuantity * 2", + "i < CrossGalleryQuantity", "i = i + 1" ], - "parts": [ - { - "if": "i%2 == 0", - "comment": "Left", - "geometry": { - "pass": true, - "url": "P-VIS-MVX.CrossGalleryConnector" - }, - "material": "MaterialId_BoxSystemColour", - "translate": { - "x": "2.5", - "y": "SideHeightInMm", - "z": "-(CrossGallerySeparationDistance * (i/2 + 1))" - }, - "uv": "@cube scale(0.01)" - }, - { - "if": "i%2 == 1", - "comment": "Right", - "geometry": { - "pass": true, - "url": "P-VIS-MVX.CrossGalleryConnector" - }, - "material": "MaterialId_BoxSystemColour", - "mirror": "x", - "translate": { - "x": "BaseWidth - 2.5", - "y": "SideHeightInMm", - "z": "-(CrossGallerySeparationDistance * (i + 1)/2)" - }, - "uv": "@cube scale(0.01)" - } - ] + "geometry": { + "pass": true, + "url": "P-VIS-MVX.CrossGalleryConnector" + }, + "material": "MaterialId_BoxSystemColour", + "translate": { + "x": "2.5", + "y": "SideHeightInMm", + "z": "-(CrossGallerySeparationDistance * (i + 1))" + }, + "uv": "@cube scale(0.01)" }, { + "comment": "CrossGalleryConnector Right", + "for": [ + "i = 0", + "i < CrossGalleryQuantity", + "i = i + 1" + ], + "geometry": { + "pass": true, + "url": "P-VIS-MVX.CrossGalleryConnector" + }, + "material": "MaterialId_BoxSystemColour", + "mirror": "x", + "translate": { + "x": "BaseWidth - 2.5", + "y": "SideHeightInMm", + "z": "-(CrossGallerySeparationDistance * (i + 1))" + }, + "uv": "@cube scale(0.01)" + }, + { "comment": "Parametric CrossGallery", "for": [ "i = 0", @@ -1182,7 +1181,7 @@ "from": "Collection_GalleryFront_Contour", "part": "P-VIS-MVX.GalleryFront", "params": { - "length": "GalleryFrontLength" + "length": "CrossGalleryLength" } }, "material": "MaterialId_BoxSystemColour", @@ -1191,7 +1190,7 @@ "y": 90 }, "translate": { - "x": "31.5", + "x": 31.5, "y": "SideHeightInMm", "z": "-((CrossGallerySeparationDistance * (i + 1)) + 10.2)" }