Index: development/Visualisatie_3D/Parametric_3D_models/TBX.json =================================================================== diff -u -r141 -r163 --- development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 141) +++ development/Visualisatie_3D/Parametric_3D_models/TBX.json (.../TBX.json) (revision 163) @@ -137,7 +137,9 @@ "CabinetWidth_IsValid = is(IsSiphon, 1) ? ( (is(SugWidthIsApplicable, 1) or is(Visu3DHasValidDimensions, 1) ) ? 1 : 0 ) : is(InternalWidth, 564.01) ? 0 : 1", "InternalWidthFor3D = is(CabinetWidth_IsValid, 1) ? InternalWidth : is(IsSink, 1) ? 564 : is(IsSiphon, 1) ? 1200 : 564", "BaseWidth = InternalWidthFor3D - 75", - "BaseDepth = BoxSystemDepth - 24", + "BaseDepthForWoodBack = BoxSystemDepth - 24", + "BaseDepthForSteelBack = BoxSystemDepth - 22", + "BaseDepth = is(BackSideMaterial, 'Wood') ? BaseDepthForWoodBack : BaseDepthForSteelBack", "ChipBoardThickness = 16", "SideDistanceBetweenBaseAndCabinetWall = 37.5", "DistanceInsideCabinetToInsideBoxSystem = 37", @@ -150,6 +152,8 @@ "GallerySide_HeightTranslation = lookup(GallerySide_HeightMatrix, [['=', string(BoxSystemHeight)], ['#', 'distance']])", "GallerySide_SideTranslation = -SideDistanceBetweenBaseAndCabinetWall + 15.5", "ShowGallerySide = is(BoxSystemHeight, SideHeight) ? 0 : 1", + "VARSECTIE = '***************************************Steel Back****************************************' ", + "VisualCorrectionZDirection = 2", "VARSECTIE = '***************************************BackFixing****************************************' ", "BackFixing_HeightMatrix = ['N', '22'; 'M', '20'; 'K', '22'; 'C', '39'; 'D', '8'; 'B', '39']", "BackFixing_HeightTranslationLookup = lookup(BackFixing_HeightMatrix, [['=', string(BackHeightFor3D)], ['#', 'distance']])", @@ -185,6 +189,7 @@ "ProductId_FrontAttachmentKPositionPiece = 'P-VIS-TBX.FrontAttachment-PositionPiece' ", "ProductId_SiphonCapLeft = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z1) )", "ProductId_SiphonCapRight = concat('P-VIS-TBX.SiphonCap-', string(CutOutCode_Z2) )", + "ProductId_SteelBack = concat('P-VIS-TBX.BackSteel-', string(InternalWidthFor3D), string(BackHeightFor3D) )", "VARSECTIE = '***************************************EINDE****************************************' " ] }, @@ -519,6 +524,21 @@ }, "material": "MaterialId_BoxSystemColour", "uv": "@cube scale(0.01)" + }, + { + "comment": "Back Steel", + "if": "is(BackSideMaterial, 'Steel')", + "geometry": { + "pass": true, + "url": "ProductId_SteelBack" + }, + "translate": { + "x": "BoxSystemCenterWidth", + "y": "-ChipBoardThickness/2", + "z": "-BaseDepth - VisualCorrectionZDirection" + }, + "material": "MaterialId_BoxSystemColour", + "uv": "@cube scale(0.01)" } ] } \ No newline at end of file