Index: development/Visualisatie_3D/Parametric_3D_models/TBX.json =================================================================== diff -u --- development/Visualisatie_3D/Parametric_3D_models/TBX.json (revision 0) +++ development/Visualisatie_3D/Parametric_3D_models/TBX.json (revision 132) @@ -0,0 +1,79 @@ +{ + "mapping": { + "Characteristics": { + "default": "##################################################################################################################", + "source": "###################################################################################################################" + }, + "BaseColour": { + "default": "WI", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_TBX_BaseColour" + }, + "InternalWidth": { + "default": 564, + "source": "/CB_VW_ViewSection3/CB_VW_NeededFor3D/C_BOX_InternalWidth" + }, + "BoxSystemHeight": { + "default": "M", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Tandembox/C_TBX_BoxSystemHeight" + }, + "BoxSystemDepth": { + "default": 500, + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Dimensies/C_TBX_BoxSystemDepth" + }, + "BoxSystemColour": { + "default": "SW", + "source": "/CB_VW_ConfiguratorTAB/CB_VW_Colours/C_TBX_BoxSystemColour" + }, + "BomComponents": { + "default": "##################################################################################################################", + "source": "###################################################################################################################" + } + }, + "parts": [ + { + "comment": "Variabelen", + "cube": { + "center": { + "x": 0, + "y": 0, + "z": 0 + }, + "size": { + "x": 0, + "y": 0, + "z": 0 + } + }, + "var": [ + "VARSECTIE = '**************************************GENERAL*****************************************' ", + "BaseWidth = InternalWidth - 75", + "BaseDepth = BoxSystemDepth - 24", + "ChipBoardThickness = 16", + "MaterialId_ChipBoard = concat('MT_ChipBoard_', BaseColour)", + "MaterialId_BoxSystemColour = concat('MT_BLUM_', BoxSystemColour)", + "VARSECTIE = '***************************************GENERATE PRODUCTID****************************************' ", + "VARSECTIE = '***************************************EINDE****************************************' " + ] + }, + { + "comment": "Base", + "material": "MaterialId_ChipBoard", + "subtract": [ + { + "cube": { + "center": { + "x": "BaseWidth/2", + "y": "ChipBoardThickness/2", + "z": "-BaseDepth/2" + }, + "size": { + "x": "BaseWidth", + "y": "ChipBoardThickness", + "z": "BaseDepth" + } + } + } + ] + } + ] +} \ No newline at end of file