Mechanical Part Concept Demo

Mechanical Part Concept Demo script details
Type
Rete logo image
rete
App Version
0.15.8
Visibility
public
Date Created
Apr 4, 2024, 1:48:29 PM
Last Edit Date
Apr 12, 2024, 9:21:12 AM

Script Details

The Code
{ "id": "rete-v2-json", "nodes": { "817c9ebe71165105": { "id": "817c9ebe71165105", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 10 }, "inputs": { "radius": { "connections": [ { "node": "bffd32dc261d6051", "output": "result", "data": {} } ] } }, "position": [ 540.91015625, 373.09765625 ] }, "38fac5094b470cb3": { "id": "38fac5094b470cb3", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 5 }, "inputs": {}, "position": [ 41.21820159272184, 589.9800547997766 ] }, "cb2a09bb355c3617": { "id": "cb2a09bb355c3617", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "nrOfDivisions": 10, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "817c9ebe71165105", "output": "result", "data": {} } ] }, "nrOfDivisions": { "connections": [ { "node": "72407dc6b0af8c7f", "output": "result", "data": {} } ] } }, "position": [ 966.19921875, 229.7109375 ] }, "9ea43da7a84e6496": { "id": "9ea43da7a84e6496", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "nrOfDivisions": 10, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "adf25a0b2ceef55a", "output": "result", "data": {} } ] }, "nrOfDivisions": { "connections": [ { "node": "72407dc6b0af8c7f", "output": "result", "data": {} } ] } }, "position": [ 1123.67578125, 667.37890625 ] }, "c8033561c30131d3": { "id": "c8033561c30131d3", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": "cb2a09bb355c3617", "output": "result", "data": {} } ] } }, "position": [ 1405.5703125, 244.328125 ] }, "ae10cbf07b74a281": { "id": "ae10cbf07b74a281", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": "9ea43da7a84e6496", "output": "result", "data": {} } ] } }, "position": [ 1553.1015625, 694.98828125 ] }, "3274d355775bfcef": { "id": "3274d355775bfcef", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.5 }, "inputs": { "center": { "connections": [ { "node": "c8033561c30131d3", "output": "result", "data": {} } ] } }, "position": [ 2465.9797706695126, 192.57661901662186 ] }, "f8ac5a6e454103af": { "id": "f8ac5a6e454103af", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.4 }, "inputs": { "center": { "connections": [ { "node": "ae10cbf07b74a281", "output": "result", "data": {} } ] } }, "position": [ 2469.16607005775, 529.4289103449051 ] }, "43b4e77db9dbe48b": { "id": "43b4e77db9dbe48b", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "3274d355775bfcef", "output": "result", "data": {} } ] } }, "position": [ 2944.4366221312703, 211.20221463570402 ] }, "b8a65b1dcde4af51": { "id": "b8a65b1dcde4af51", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "f8ac5a6e454103af", "output": "result", "data": {} } ] } }, "position": [ 2947.036513965679, 381.7701804346261 ] }, "a04a6f72e82d6c74": { "id": "a04a6f72e82d6c74", "name": "bitbybit.occt.shapes.face.createFaceFromMultipleCircleTanWireCollections", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "combination": "inOrder", "unify": true, "tolerance": 1e-7 }, "inputs": { "listsOfCircles": { "connections": [ { "node": "b4f6496f4adb41b7", "output": "list", "data": {} } ] } }, "position": [ 3814.5572488390526, 141.9946916327729 ] }, "b4f6496f4adb41b7": { "id": "b4f6496f4adb41b7", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "43b4e77db9dbe48b", "output": "list", "data": {} }, { "node": "b8a65b1dcde4af51", "output": "list", "data": {} }, { "node": "cdafe6d5d8da7ffe", "output": "list", "data": {} } ] } }, "position": [ 3345.640127845094, 293.9563365059234 ] }, "a6e33dfff618bb07": { "id": "a6e33dfff618bb07", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.4 }, "inputs": { "center": { "connections": [ { "node": "b61731f19a7115bd", "output": "result", "data": {} } ] } }, "position": [ 2464.1729917590696, 871.1480393258889 ] }, "b61731f19a7115bd": { "id": "b61731f19a7115bd", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": "cda7f5ee607b819d", "output": "result", "data": {} } ] } }, "position": [ 1585.8148834199314, 1136.072523264756 ] }, "cda7f5ee607b819d": { "id": "cda7f5ee607b819d", "name": "bitbybit.occt.shapes.wire.divideWireByParamsToPoints", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "nrOfDivisions": 10, "removeStartPoint": false, "removeEndPoint": true }, "inputs": { "shape": { "connections": [ { "node": "a6e9312feae3c3ea", "output": "result", "data": {} } ] }, "nrOfDivisions": { "connections": [ { "node": "72407dc6b0af8c7f", "output": "result", "data": {} } ] } }, "position": [ 1016.9597500941852, 1106.285157274937 ] }, "a6e9312feae3c3ea": { "id": "a6e9312feae3c3ea", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 2 }, "inputs": {}, "position": [ 572.7232347823003, 1109.0038397304927 ] }, "cdafe6d5d8da7ffe": { "id": "cdafe6d5d8da7ffe", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "a6e33dfff618bb07", "output": "result", "data": {} } ] } }, "position": [ 2957.4307561481887, 565.4554422077204 ] }, "e4eb4f50578346ba": { "id": "e4eb4f50578346ba", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "05ded9e2f87a6363", "output": "result", "data": {} }, { "node": "4a462a6688bbe1c6", "output": "result", "data": {} }, { "node": "dbb5ecffef9e4599", "output": "result", "data": {} } ] } }, "position": [ 3667.292451121635, -580.4281045946819 ] }, "1186c18a1cf5861c": { "id": "1186c18a1cf5861c", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": "e4eb4f50578346ba", "output": "list", "data": {} } ] } }, "position": [ 4425.566010488291, -534.4511273084136 ] }, "da367ba5e3e3f150": { "id": "da367ba5e3e3f150", "name": "bitbybit.occt.shapes.edge.reversedEdge", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "1186c18a1cf5861c", "output": "result", "data": {} } ] } }, "position": [ 5129.415965197182, -533.1110137114465 ] }, "6c74fca60155b89c": { "id": "6c74fca60155b89c", "name": "bitbybit.occt.shapes.wire.getWires", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "a04a6f72e82d6c74", "output": "result", "data": {} } ] } }, "position": [ 4728.779378238877, -15.579145819306063 ] }, "7cfbbe30c6a73ce4": { "id": "7cfbbe30c6a73ce4", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "14ed2ee4391f0461", "output": "result", "data": {} }, { "node": "da367ba5e3e3f150", "output": "result", "data": {} } ] } }, "position": [ 5563.234735538468, -423.10197269848317 ] }, "14ed2ee4391f0461": { "id": "14ed2ee4391f0461", "name": "bitbybit.lists.flatten", "data": { "nrLevels": 1 }, "inputs": { "list": { "connections": [ { "node": "6c74fca60155b89c", "output": "result", "data": {} } ] } }, "position": [ 5207.179503152822, -241.71775453129197 ] }, "73065bfffea1d597": { "id": "73065bfffea1d597", "name": "bitbybit.occt.shapes.face.createFaceFromWires", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shapes": { "connections": [ { "node": "7cfbbe30c6a73ce4", "output": "list", "data": {} } ] } }, "position": [ 5925.521068898299, -458.32496852328353 ] }, "db2c8c52c0055fcf": { "id": "db2c8c52c0055fcf", "name": "bitbybit.occt.operations.extrude", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "73065bfffea1d597", "output": "result", "data": {} } ] } }, "position": [ 6418.532631936938, -357.78292735945973 ] }, "05ded9e2f87a6363": { "id": "05ded9e2f87a6363", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 1.3 }, "inputs": { "center": { "connections": [ { "node": "c8033561c30131d3", "output": "result", "data": {} } ] } }, "position": [ 2521.9255575567245, -994.6116184439569 ] }, "4a462a6688bbe1c6": { "id": "4a462a6688bbe1c6", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.3 }, "inputs": { "center": { "connections": [ { "node": "ae10cbf07b74a281", "output": "result", "data": {} } ] } }, "position": [ 2531.3880580862465, -634.3668470210926 ] }, "dbb5ecffef9e4599": { "id": "dbb5ecffef9e4599", "name": "bitbybit.occt.shapes.wire.createCircleWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "radius": 0.2 }, "inputs": { "center": { "connections": [ { "node": "b61731f19a7115bd", "output": "result", "data": {} } ] } }, "position": [ 2508.206806782173, -257.80116761684593 ] }, "716e06a08666a5cf": { "id": "716e06a08666a5cf", "name": "bitbybit.occt.operations.extrude", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "b9f5a43181e253fb", "output": "result", "data": {} } ] }, "direction": { "connections": [ { "node": "74a0d53a7638539c", "output": "result", "data": {} } ] } }, "position": [ 5561.866167738022, -1002.1282794835114 ] }, "b9f5a43181e253fb": { "id": "b9f5a43181e253fb", "name": "bitbybit.occt.shapes.face.createFaceFromWire", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "planar": true }, "inputs": { "shape": { "connections": [ { "node": "1186c18a1cf5861c", "output": "result", "data": {} } ] } }, "position": [ 4776.607340643532, -1059.2324262008526 ] }, "74a0d53a7638539c": { "id": "74a0d53a7638539c", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 3, "z": 0 }, "inputs": {}, "position": [ 5168.0061011165, -894.7245995870225 ] }, "25845f1df5843684": { "id": "25845f1df5843684", "name": "bitbybit.lists.createList", "data": {}, "inputs": { "listElements": { "connections": [ { "node": "716e06a08666a5cf", "output": "result", "data": {} } ] } }, "position": [ 5941.460259164923, -974.9834992438073 ] }, "c76a3ba682292d58": { "id": "c76a3ba682292d58", "name": "bitbybit.occt.shapes.compound.makeCompound", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shapes": { "connections": [ { "node": "25845f1df5843684", "output": "list", "data": {} } ] } }, "position": [ 6393.4557229078255, -987.6578902808172 ] }, "c9c6a6d7a969445a": { "id": "c9c6a6d7a969445a", "name": "bitbybit.occt.transforms.translate", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "c76a3ba682292d58", "output": "result", "data": {} } ] }, "translation": { "connections": [ { "node": "7ecb724a0d89ae79", "output": "result", "data": {} } ] } }, "position": [ 6906.633534240093, -945.6429892140573 ] }, "7ecb724a0d89ae79": { "id": "7ecb724a0d89ae79", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": -1, "z": 0 }, "inputs": {}, "position": [ 6528.149128408837, -676.7679113485633 ] }, "adf25a0b2ceef55a": { "id": "adf25a0b2ceef55a", "name": "bitbybit.occt.transforms.rotate", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "angle": 20 }, "inputs": { "shape": { "connections": [ { "node": "38fac5094b470cb3", "output": "result", "data": {} } ] }, "axis": { "connections": [ { "node": "1fca86abcf2fae4b", "output": "result", "data": {} } ] } }, "position": [ 499.8284737798434, 729.3849748561252 ] }, "1fca86abcf2fae4b": { "id": "1fca86abcf2fae4b", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": 1, "z": 0 }, "inputs": {}, "position": [ 70.0405566033636, 922.5442568364821 ] }, "02d347f5519fce5d": { "id": "02d347f5519fce5d", "name": "bitbybit.occt.shapes.face.createFaceFromMultipleCircleTanWireCollections", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "combination": "inOrderClosed", "unify": true, "tolerance": 1e-7 }, "inputs": { "listsOfCircles": { "connections": [ { "node": "b4f6496f4adb41b7", "output": "list", "data": {} } ] } }, "position": [ 3846.8568054442576, 549.3972346617952 ] }, "21f6f23e7fb27a2b": { "id": "21f6f23e7fb27a2b", "name": "bitbybit.occt.operations.extrude", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "02d347f5519fce5d", "output": "result", "data": {} } ] } }, "position": [ 4611.976590329913, 672.5593915297413 ] }, "f714d4ab13e5a80d": { "id": "f714d4ab13e5a80d", "name": "bitbybit.occt.transforms.translate", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 } }, "inputs": { "shape": { "connections": [ { "node": "21f6f23e7fb27a2b", "output": "result", "data": {} } ] }, "translation": { "connections": [ { "node": "6a218e578806a83e", "output": "result", "data": {} } ] } }, "position": [ 5009.030193018405, 764.7397284506785 ] }, "6a218e578806a83e": { "id": "6a218e578806a83e", "name": "bitbybit.vector.vectorXYZ", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "x": 0, "y": -2, "z": 0 }, "inputs": {}, "position": [ 4441.439653570503, 1070.1166481098558 ] }, "ea76c71188ba0d4a": { "id": "ea76c71188ba0d4a", "name": "bitbybit.occt.fillets.chamferEdges", "data": { "genericNodeData": { "hide": true, "oneOnOne": false, "flatten": 0 }, "distance": 0.1 }, "inputs": { "shape": { "connections": [ { "node": "c9c6a6d7a969445a", "output": "result", "data": {} } ] } }, "position": [ 7340.679638248724, -944.3804334665055 ] }, "fd7dde4974592435": { "id": "fd7dde4974592435", "name": "bitbybit.babylon.scene.enableSkybox", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "skybox": "city", "size": 1000, "blur": 0.5, "environmentIntensity": 0.7 }, "inputs": {}, "position": [ 638.4013888563206, 1825.789042854114 ] }, "097eade35bb22d97": { "id": "097eade35bb22d97", "name": "bitbybit.draw.drawAnyAsync", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "entity": { "connections": [ { "node": "ea76c71188ba0d4a", "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": "cdc6e0c1a3ae3c66", "output": "result", "data": {} } ] } }, "position": [ 8275.27959558973, -765.3633217267621 ] }, "1b08e743ec441427": { "id": "1b08e743ec441427", "name": "bitbybit.babylon.material.pbrMetallicRoughness.create", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "name": "Custom Material", "baseColor": "#9292aa", "emissiveColor": "#000000", "metallic": 0.9, "roughness": 0.2, "alpha": 1, "backFaceCulling": false, "zOffset": 2 }, "inputs": {}, "position": [ 7291.215075982729, -263.2490086019375 ] }, "cdc6e0c1a3ae3c66": { "id": "cdc6e0c1a3ae3c66", "name": "bitbybit.draw.optionsOcctShapeMaterial", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "precision": 0.01, "drawEdges": true, "edgeColour": "#8000ff", "edgeWidth": 2 }, "inputs": { "faceMaterial": { "connections": [ { "node": "1b08e743ec441427", "output": "result", "data": {} } ] } }, "position": [ 7668.136840127437, -404.6238076408979 ] }, "a332a9d39d1a6446": { "id": "a332a9d39d1a6446", "name": "bitbybit.babylon.scene.drawDirectionalLight", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "intensity": 3, "diffuse": "#ffffff", "specular": "#ffffff", "shadowGeneratorMapSize": 2056, "enableShadows": true, "shadowDarkness": 0 }, "inputs": {}, "position": [ 984.3684443332944, 1812.5935552018925 ] }, "7c3d24b415e04dc0": { "id": "7c3d24b415e04dc0", "name": "bitbybit.draw.drawAnyAsync", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "options": { "connections": [ { "node": "b8b395924ff2ea5c", "output": "result", "data": {} } ] }, "entity": { "connections": [ { "node": "f714d4ab13e5a80d", "output": "result", "data": {} } ] } }, "position": [ 6004.81279897763, 878.7117553829223 ] }, "b8b395924ff2ea5c": { "id": "b8b395924ff2ea5c", "name": "bitbybit.draw.optionsOcctShapeMaterial", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "precision": 0.001, "drawEdges": true, "edgeColour": "#000000", "edgeWidth": 2 }, "inputs": { "faceMaterial": { "connections": [ { "node": "e048c6b748f5d9ac", "output": "result", "data": {} } ] } }, "position": [ 5457.291361394114, 1076.1513721496415 ] }, "e048c6b748f5d9ac": { "id": "e048c6b748f5d9ac", "name": "bitbybit.babylon.material.pbrMetallicRoughness.create", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "name": "Custom Material", "baseColor": "#121212", "emissiveColor": "#000000", "metallic": 0.9, "roughness": 0.135, "alpha": 1, "backFaceCulling": false, "zOffset": 0 }, "inputs": {}, "position": [ 5079.52290245534, 1183.6639085903107 ] }, "a30c2cb3e74ef10f": { "id": "a30c2cb3e74ef10f", "name": "bitbybit.babylon.material.pbrMetallicRoughness.create", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "name": "Custom Material", "baseColor": "#050566", "emissiveColor": "#000000", "metallic": 0.9, "roughness": 0.125, "alpha": 1, "backFaceCulling": false, "zOffset": 2 }, "inputs": {}, "position": [ 6372.586991343973, 18.062215888291718 ] }, "239d7fa152e38911": { "id": "239d7fa152e38911", "name": "bitbybit.draw.optionsOcctShapeMaterial", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 }, "precision": 0.01, "drawEdges": true, "edgeColour": "#ffffff", "edgeWidth": 2 }, "inputs": { "faceMaterial": { "connections": [ { "node": "a30c2cb3e74ef10f", "output": "result", "data": {} } ] } }, "position": [ 6726.884436994608, 326.05075398910265 ] }, "b5dbec9d05c4315a": { "id": "b5dbec9d05c4315a", "name": "bitbybit.draw.drawAnyAsync", "data": { "genericNodeData": { "hide": false, "oneOnOne": false, "flatten": 0 } }, "inputs": { "entity": { "connections": [ { "node": "db2c8c52c0055fcf", "output": "result", "data": {} } ] }, "options": { "connections": [ { "node": "239d7fa152e38911", "output": "result", "data": {} } ] } }, "position": [ 7331.695921042549, 258.15675008688845 ] }, "72407dc6b0af8c7f": { "id": "72407dc6b0af8c7f", "name": "bitbybit.math.numberSlider", "data": { "options": { "min": 2, "max": 13, "step": 1, "width": 350 }, "number": 8 }, "inputs": {}, "position": [ -851.4669526694637, 36.615931024059165 ] }, "bffd32dc261d6051": { "id": "bffd32dc261d6051", "name": "bitbybit.math.numberSlider", "data": { "options": { "min": 10, "max": 30, "step": 1, "width": 350 }, "number": 10 }, "inputs": {}, "position": [ -692.7139706592004, 399.41384398412134 ] } } }